Skip to content

BlockSuite API Documentation / @blocksuite/blocks / AttachmentBlockSchema

Variable: AttachmentBlockSchema

const AttachmentBlockSchema: Object

Type declaration

model

model: Object & Object

Type declaration

flavour

flavour: "affine:attachment"

props

props: PropsGetter<AttachmentBlockProps>

Type declaration

parent

parent: string[]

role

role: "content" = 'content'

version

version: number = 1

onUpgrade?

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

Parameters

data: AttachmentBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer?

optional transformer: () => AttachmentBlockTransformer

Returns

AttachmentBlockTransformer

version

version: number

Source

packages/blocks/src/attachment-block/attachment-model.ts:71