BlockSuite API Documentation / @blocksuite/blocks / ImageBlockSchema
Variable: ImageBlockSchema
const
ImageBlockSchema:Object
Type declaration
model
model:
Object
&Object
Type declaration
flavour
flavour:
"affine:image"
props
props:
PropsGetter
<ImageBlockProps
>
Type declaration
role
role:
"content"
='content'
version
version:
number
=1
onUpgrade?
onUpgrade?: (
data
,previousVersion
,latestVersion
) =>void
Parameters
• data: ImageBlockProps
• previousVersion: number
• latestVersion: number
Returns
void
transformer?
transformer?: () =>
ImageBlockTransformer
Returns
ImageBlockTransformer
version
version:
number
Source
packages/blocks/src/image-block/image-model.ts:29
Generated using TypeDoc and typedoc-plugin-markdown.