(editor: Editor)
| 14 | const TITLE_OPTIONS = new WeakMap<Editor, TitleOptions>() |
| 15 | |
| 16 | export const getOptions = (editor: Editor): TitleOptions => { |
| 17 | return TITLE_OPTIONS.get(editor) ?? {} |
| 18 | } |
| 19 | |
| 20 | export const setOptions = (editor: Editor, options: TitleOptions) => { |
| 21 | TITLE_OPTIONS.set(editor, options) |
nothing calls this directly
no test coverage detected
searching dependent graphs…