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

Type declaration

parent

parent: string[]

role

role: "content"

version

version: number

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

Defined in

packages/affine/model/dist/blocks/attachment/attachment-model.d.ts:43