(editor: Editor)
| 23 | const HEADING_OPTIONS = new WeakMap<Editor, HeadingOptions>() |
| 24 | |
| 25 | export const getOptions = (editor: Editor): HeadingOptions => { |
| 26 | return HEADING_OPTIONS.get(editor) ?? {} |
| 27 | } |
| 28 | |
| 29 | export const setOptions = (editor: Editor, options: HeadingOptions) => { |
| 30 | HEADING_OPTIONS.set(editor, options) |
no test coverage detected
searching dependent graphs…