mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
593 B
593 B
BlockSuite API Documentation / @blocksuite/block-std / index / FlavourExtension
Function: FlavourExtension()
FlavourExtension(
flavour):ExtensionType
Create a flavour extension.
Parameters
flavour
string
The flavour of the block that the extension is for.
Returns
ExtensionType
Example
import { FlavourExtension } from '@blocksuite/block-std';
const MyFlavourExtension = FlavourExtension('my-flavour');