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?
onUpgrade?: (
data
,previousVersion
,latestVersion
) =>void
Parameters
• data: Props
• previousVersion: number
• latestVersion: number
Returns
void
transformer?
transformer?: () =>
BaseBlockTransformer
<Props
>
Returns
BaseBlockTransformer
<Props
>
version
version:
number
Source
packages/blocks/src/data-view-block/data-view-model.ts:73
Generated using TypeDoc and typedoc-plugin-markdown.