Skip to content

BlockSuite API Documentation / @blocksuite/store / toDraftModel

Function: toDraftModel()

toDraftModel<Model>(origin): DraftModel<Model>

Type Parameters

Model extends BlockModel<object, SignaledProps<object>> = BlockModel<object, SignaledProps<object>>

Parameters

origin: Model

Returns

DraftModel<Model>

Defined in

packages/framework/store/src/transformer/draft.ts:21