Skip to content

BlockSuite API Documentation / @blocksuite/blocks / CodeBlockSchema

Variable: CodeBlockSchema

const CodeBlockSchema: object

Type declaration

model

model: object & object

Type declaration

flavour

flavour: "affine:code"

props

props: PropsGetter

Type declaration

children

children: never[]

parent

parent: string[]

role

role: "content"

version

version: number

transformer()?

optional transformer: () => BaseBlockTransformer

Returns

BaseBlockTransformer

version

version: number

Defined in

packages/affine/model/dist/blocks/code/code-model.d.ts:8