mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-02 10:10:42 +08:00
205cd7a86d
Closes: BS-2946
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');