BlockSuite API Documentation / @blocksuite/blocks / createDefaultDoc
Function: createDefaultDoc()
createDefaultDoc(
collection
,options
?):@blocksuite/store
Parameters
• collection: DocCollection
• options?
• options.id?: string
• options.title?: string
Returns
Defined in
packages/affine/shared/dist/utils/model/doc.d.ts:2