Skip to content

BlockSuite API Documentation / @blocksuite/blocks / createDefaultDoc

Function: createDefaultDoc()

createDefaultDoc(collection, options?): Doc

Parameters

collection

DocCollection

options?

id

string

title

string

Returns

Doc

Defined in

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