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()?
optional
onUpgrade: (data
,previousVersion
,latestVersion
) =>void
Parameters
• data
• data.text: Text
= undefined
• data.type: ParagraphType
= undefined
• previousVersion: number
• latestVersion: number
Returns
void
transformer()?
optional
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