BlockSuite API Documentation / @blocksuite/affine-model / CodeBlockSchema
Variable: CodeBlockSchema
const
CodeBlockSchema:object
Type declaration
model
model:
object
&object
Type declaration
flavour
flavour:
"affine:code"
props
props:
PropsGetter
<CodeBlockProps
>
Type declaration
children
children:
never
[] =[]
parent
parent:
string
[]
role
role:
"content"
='content'
version
version:
number
=1
transformer()?
optional
transformer: () =>BaseBlockTransformer
<CodeBlockProps
>
Returns
BaseBlockTransformer
<CodeBlockProps
>
version
version:
number
Defined in
packages/affine/model/src/blocks/code/code-model.ts:14