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?

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

Parameters

data: AttachmentBlockProps

previousVersion: number

latestVersion: number

Returns

void

transformer?

transformer?: () => AttachmentBlockTransformer

Returns

AttachmentBlockTransformer

version

version: number

Source

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


Generated using TypeDoc and typedoc-plugin-markdown.