BlockSuite API Documentation / @blocksuite/block-std / FlavourExtension
Function: FlavourExtension()
FlavourExtension(
flavour
):ExtensionType
Create a flavour extension.
Parameters
• flavour: string
The flavour of the block that the extension is for.
Returns
Example
ts
import { FlavourExtension } from '@blocksuite/block-std';
const MyFlavourExtension = FlavourExtension('my-flavour');
Defined in
packages/framework/block-std/src/extension/flavour.ts:18