Skip to content

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?

optional onUpgrade: (data, previousVersion, latestVersion) => void

Parameters

data: ImageBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer?

optional transformer: () => ImageBlockTransformer

Returns

ImageBlockTransformer

version

version: number

Source

packages/blocks/src/image-block/image-model.ts:29