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
>
Type declaration
parent
parent:
string
[]
role
role:
"content"
='content'
version
version:
number
=1
onUpgrade()?
optional
onUpgrade: (data
,previousVersion
,latestVersion
) =>void
Parameters
• data: SurfaceRefProps
• previousVersion: number
• latestVersion: number
Returns
void
transformer()?
optional
transformer: () =>BaseBlockTransformer
<SurfaceRefProps
>
Returns
BaseBlockTransformer
<SurfaceRefProps
>
version
version:
number
Source
packages/blocks/src/surface-ref-block/surface-ref-model.ts:9