BlockSuite API Documentation / @blocksuite/blocks / EmbedLinkedDocBlockSchema
Variable: EmbedLinkedDocBlockSchema
const
EmbedLinkedDocBlockSchema:object
Type declaration
model
model:
object
&object
Type declaration
flavour
flavour: `affine:embed-${string}`
props
props:
@blocksuite/store
Type declaration
role
role:
"content"
version
version:
number
onUpgrade()?
optional
onUpgrade: (data
,previousVersion
,latestVersion
) =>void
Parameters
• data: EmbedProps
• previousVersion: number
• latestVersion: number
Returns
void
transformer()?
optional
transformer: () =>@blocksuite/store
Returns
version
version:
number
Defined in
packages/affine/model/dist/blocks/embed/linked-doc/linked-doc-schema.d.ts:2