BlockSuite API Documentation / @blocksuite/blocks / createEmbedBlockSchema
Function: createEmbedBlockSchema()
createEmbedBlockSchema<
Props
,Model
,Transformer
>(__namedParameters
):object
Type Parameters
• Props extends object
• Model extends EmbedBlockModel
<Props
>
• Transformer extends BaseBlockTransformer
<EmbedProps
<Props
>> = BaseBlockTransformer
<EmbedProps
<Props
>>
Parameters
__namedParameters
name
string
props
(internalPrimitives
) => Props
toModel
() => Model
transformer
() => Transformer
version
number
Returns
object
model
model:
object
&object
Type declaration
flavour
flavour: `affine:embed-${string}`
props
props:
PropsGetter
Type declaration
role
role:
"content"
version
version:
number
transformer()?
optional
transformer: () =>Transformer
Returns
Transformer
version
version:
number
Defined in
packages/affine/model/dist/utils/helper.d.ts:9