BlockSuite API Documentation / @blocksuite/blocks / SurfaceRefBlockSchema
Variable: SurfaceRefBlockSchema ​
const
SurfaceRefBlockSchema:Object
Type declaration ​
model ​
model:
Object
&Object
Type declaration ​
flavour ​
flavour:
"affine:surface-ref"
props ​
props:
PropsGetter
<SurfaceRefProps
>
role ​
role:
"root"
|"hub"
|"content"
Type declaration ​
parent ​
parent:
string
[]
role ​
role:
"content"
='content'
version ​
version:
number
=1
onUpgrade? ​
onUpgrade?: (
data
,previousVersion
,latestVersion
) =>void
Parameters ​
• data: SurfaceRefProps
• previousVersion: number
• latestVersion: number
Returns ​
void
transformer? ​
transformer?: () =>
BaseBlockTransformer
<SurfaceRefProps
>
Returns ​
BaseBlockTransformer
<SurfaceRefProps
>
version ​
version:
number
Source ​
packages/blocks/src/surface-ref-block/surface-ref-model.ts:9
Generated using typedoc-plugin-markdown and TypeDoc