BlockSuite API Documentation / @blocksuite/blocks / DataViewBlockSchema
Variable: DataViewBlockSchema
const
DataViewBlockSchema:Object
Type declaration
model
model:
Object
&Object
Type declaration
flavour
flavour:
"affine:data-view"
props
props:
PropsGetter
<Props
>
Type declaration
children
children:
string
[]
parent
parent:
string
[]
role
role:
"hub"
='hub'
version
version:
number
=1
onUpgrade?
optional
onUpgrade: (data
,previousVersion
,latestVersion
) =>void
Parameters
• data: Props
• previousVersion: number
• latestVersion: number
Returns
void
transformer?
optional
transformer: () =>BaseBlockTransformer
<Props
>
Returns
BaseBlockTransformer
<Props
>
version
version:
number
Source
packages/blocks/src/data-view-block/data-view-model.ts:73