(editor: Editor)
| 17 | const MENTION_OPTIONS = new WeakMap<Editor, MentionOptions>() |
| 18 | |
| 19 | export const getOptions = (editor: Editor): MentionOptions => { |
| 20 | return MENTION_OPTIONS.get(editor) ?? {} |
| 21 | } |
| 22 | |
| 23 | export const setOptions = (editor: Editor, options: MentionOptions) => { |
| 24 | MENTION_OPTIONS.set(editor, options) |
no test coverage detected
searching dependent graphs…