BlockSuite API Documentation / @blocksuite/store / BlockSchemaExtension
Function: BlockSchemaExtension()
BlockSchemaExtension(
blockSchema):ExtensionType
Defined in: packages/framework/store/src/extension/schema.ts:9
Parameters
blockSchema
model
{ children: string[]; flavour: string; isFlatData: boolean; parent: string[]; props: (...args) => Record<string, any>; role: "root" | "hub" | "content"; toModel: (...args) => BlockModel<object>; } = ...
model.children?
string[] = ContentSchema
model.flavour
string = FlavourSchema
model.isFlatData?
boolean = ...
model.parent?
string[] = ParentSchema
model.props?
(...args) => Record<string, any> = ...
model.role
"root" | "hub" | "content" = RoleSchema
model.toModel?
(...args) => BlockModel<object> = ...
transformer?
(...args) => BaseBlockTransformer<object> = ...
version
number = ...