API > @blocksuite/blocks > ImageBlockSchema
Variable: ImageBlockSchema ​
const
ImageBlockSchema:object
Type declaration ​
model
​
model: {
flavour
:"affine:image"
;props
:PropsGetter
<ImageBlockProps
>;role
:"root"
|"hub"
|"content"
;} & {role
:"content"
;version
:number
;}
model.flavour
​flavour:
"affine:image"
model.props
​props:
PropsGetter
<ImageBlockProps
>
model.role
​role:
"root"
|"hub"
|"content"
model.role
​role:
"content"
='content'
model.version
​version:
number
=1
onUpgrade
​
optional
onUpgrade:function
Parameters ​
Parameter | Type |
---|---|
data | ImageBlockProps |
previousVersion | number |
latestVersion | number |
Returns ​
void
transformer
​
optional
transformer:function
Returns ​
ImageBlockTransformer
version
​
version:
number
Defined In ​
packages/blocks/src/image-block/image-model.ts:35