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