@sqlrooms/documents / normalizeBlockDocumentContent
Function: normalizeBlockDocumentContent()
normalizeBlockDocumentContent(
value,generateBlockId?):object
Parameters
| Parameter | Type | Default value |
|---|---|---|
value | {[key: string]: unknown; type: "doc"; content: BlockDocumentNode[]; } | undefined |
value.type | "doc" | ... |
value.content | BlockDocumentNode[] | ... |
generateBlockId | () => string | defaultGenerateBlockId |
Returns
object
| Name | Type |
|---|---|
type | "doc" |
content | BlockDocumentNode[] |
