Skip to content

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