BlockSuite API Documentation / @blocksuite/blocks / ParagraphBlockSchema
Variable: ParagraphBlockSchema
const
ParagraphBlockSchema:Object
Type declaration
model
model:
Object
&Object
Type declaration
flavour
flavour:
"affine:paragraph"
props
props:
PropsGetter
<Object
>
Type declaration
text
text:
Text
type
type:
ParagraphType
Type declaration
parent
parent:
string
[]
role
role:
"content"
='content'
version
version:
number
=1
onUpgrade?
onUpgrade?: (
data
,previousVersion
,latestVersion
) =>void
Parameters
• data: Object
• data.text: Text
= undefined
• data.type: ParagraphType
= undefined
• previousVersion: number
• latestVersion: number
Returns
void
transformer?
transformer?: () =>
BaseBlockTransformer
<Object
>
Returns
BaseBlockTransformer
<Object
>
text
text:
Text
type
type:
ParagraphType
version
version:
number
Source
packages/blocks/src/paragraph-block/paragraph-model.ts:13
Generated using TypeDoc and typedoc-plugin-markdown.