BlockSuite API Documentation / @blocksuite/blocks / createDefaultDoc
Function: createDefaultDoc()
createDefaultDoc(
collection
,options
):Doc
Parameters
• collection: DocCollection
• options= {}
• options.id?: string
• options.title?: string
Returns
Source
packages/blocks/src/_common/utils/init.ts:3