BlockSuite API Documentation / @blocksuite/blocks / AttachmentBlockSchema
Variable: AttachmentBlockSchema 
constAttachmentBlockSchema:Object
Type declaration 
model 
model:
Object&Object
Type declaration 
flavour 
flavour:
"affine:attachment"
props 
props:
PropsGetter<AttachmentBlockProps>
role 
role:
"content"|"root"|"hub"
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?: () =>
BaseBlockTransformer<AttachmentBlockProps>
Returns 
BaseBlockTransformer<AttachmentBlockProps>
version 
version:
number
Source 
packages/blocks/src/attachment-block/attachment-model.ts:49
Generated using typedoc-plugin-markdown and TypeDoc