Skip to content

BlockSuite API Documentation / @blocksuite/store / BlockUpdatedPayload

Type Alias: BlockUpdatedPayload

BlockUpdatedPayload = { flavour: string; id: string; init: boolean; isLocal: boolean; model: BlockModel; type: "add"; } | { flavour: string; id: string; isLocal: boolean; model: BlockModel; parent: string; type: "delete"; } | { flavour: string; id: string; isLocal: boolean; props: { key: string; }; type: "update"; }

Defined in: packages/framework/store/src/model/store/store.ts:37