(editor: Editor)
| 9 | const LEADING_OPTIONS = new WeakMap<Editor, LeadingOptions>() |
| 10 | |
| 11 | export const getOptions = (editor: Editor): LeadingOptions => { |
| 12 | return LEADING_OPTIONS.get(editor) ?? {} |
| 13 | } |
| 14 | |
| 15 | export const setOptions = (editor: Editor, options: LeadingOptions) => { |
| 16 | LEADING_OPTIONS.set(editor, options) |
no test coverage detected
searching dependent graphs…