mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
566 B
566 B
BlockSuite API Documentation / @blocksuite/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/std';
const MyFlavourExtension = FlavourExtension('my-flavour');