MCPcopy Create free account
hub / github.com/editablejs/editable / CodeBlock

Interface CodeBlock

packages/plugins/codeblock/src/interfaces/codeblock.ts:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9export interface CodeBlock extends Element {
10 id: string
11 type: typeof CODEBLOCK_KEY
12 code: string
13 language?: string
14 tabSize?: number
15 lineWrapping?: boolean
16 theme?: 'light' | 'dark'
17}
18
19export const CodeBlock = {
20 isCodeBlock: (value: any): value is CodeBlock => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…