API > @blocksuite/blocks > SurfaceRefBlockSchema
Variable: SurfaceRefBlockSchema ​
const
SurfaceRefBlockSchema:object
Type declaration ​
model
​
model: {
flavour
:"affine:surface-ref"
;props
:PropsGetter
<SurfaceRefProps
>;role
:"root"
|"hub"
|"content"
;} & {parent
:string
[];role
:"content"
;version
:number
;}
model.flavour
​flavour:
"affine:surface-ref"
model.props
​props:
PropsGetter
<SurfaceRefProps
>
model.role
​role:
"root"
|"hub"
|"content"
model.parent
​parent:
string
[]
model.role
​role:
"content"
='content'
model.version
​version:
number
=1
onUpgrade
​
optional
onUpgrade:function
Parameters ​
Parameter | Type |
---|---|
data | SurfaceRefProps |
previousVersion | number |
latestVersion | number |
Returns ​
void
transformer
​
optional
transformer:function
Returns ​
BaseBlockTransformer
< SurfaceRefProps
>
version
​
version:
number
Defined In ​
packages/blocks/src/surface-ref-block/surface-ref-model.ts:9