Skip to content

BlockSuite API Documentation / @blocksuite/blocks / createDefaultDoc

Function: createDefaultDoc()

createDefaultDoc(collection, options): Doc

Parameters

collection: DocCollection

options= {}

options.id?: string

options.title?: string

Returns

Doc

Source

packages/blocks/src/_common/utils/init.ts:3