(editor: unknown)
| 67 | }; |
| 68 | |
| 69 | function getCodeMirrorEditor(editor: unknown): unknown { |
| 70 | if (!editor || typeof editor !== "object") { |
| 71 | return undefined; |
| 72 | } |
| 73 | |
| 74 | return (editor as unknown as EditorWithCodeMirror).cm ?? null; |
| 75 | } |
| 76 | |
| 77 | export function registerTaskNotesIcon(): void { |
| 78 | addIcon( |
no outgoing calls
no test coverage detected