BlockSuite API Documentation / @blocksuite/store / toDraftModel
Function: toDraftModel()
toDraftModel<
Model
>(origin
):DraftModel
<Model
>
Type parameters
• Model extends BlockModel
<object
> = BlockModel
<object
>
Parameters
• origin: Model
Returns
DraftModel
<Model
>
Source
packages/framework/store/src/transformer/draft.ts:21