fn
createDoc
testedConstruct a document from blocks.
Signature
ts
export function createDoc(content: readonly Node[] = []): WritekitDocument{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
content? | readonly Node[] | — |
Returns
WritekitDocument| Property | Type | Description |
|---|---|---|
type | 'doc' | — |
content | readonly Node[] | — |