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: @blocksuite/store

Type declaration

role

role: "content"

version

version: number

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

Defined in

packages/affine/model/dist/blocks/image/image-model.d.ts:14