Skip to content

API > @blocksuite/store > SchemaToModel

Type alias: SchemaToModel<Schema> ​

SchemaToModel: <Schema> BaseBlockModel< PropsFromGetter< Schema["model"]["props"] > > & ReturnType< Schema["model"]["props"] > & {flavour: Schema["model"]["flavour"];}

SchemaToModel.flavour ​

flavour: Schema["model"]["flavour"]

Type parameters ​

Parameter
Schema extends {model: {flavour: string; props: PropsGetter< object >;};}

Defined In ​

packages/store/src/schema/base.ts:64