Skip to content

BlockSuite API Documentation / @blocksuite/blocks / createDefaultDoc

Function: createDefaultDoc()

createDefaultDoc(collection, options?): @blocksuite/store

Parameters

collection: DocCollection

options?

options.id?: string

options.title?: string

Returns

@blocksuite/store

Defined in

packages/affine/shared/dist/utils/model/doc.d.ts:2