| 6 | export type InsertCodeBlockOptions = Partial<Omit<CodeBlock, 'type' | 'children'>> |
| 7 | |
| 8 | export interface CodeBlockEditor extends Editor { |
| 9 | insertCodeBlock: (options?: InsertCodeBlockOptions) => void |
| 10 | |
| 11 | updateCodeBlock: (element: CodeBlock, options: InsertCodeBlockOptions) => void |
| 12 | |
| 13 | getCodeMirrorExtensions: (id: string) => any[] |
| 14 | } |
| 15 | |
| 16 | export const CodeBlockEditor = { |
| 17 | isCodeBlockEditor: (editor: Editor): editor is CodeBlockEditor => { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…