(editor: Editor)
| 9 | const MENTION_TRIGGER_DATA_WEAK_MAP = new WeakMap<Editor, MentionTriggerData>() |
| 10 | |
| 11 | export const getMentionTriggerData = (editor: Editor): MentionTriggerData | undefined => { |
| 12 | return MENTION_TRIGGER_DATA_WEAK_MAP.get(editor) |
| 13 | } |
| 14 | |
| 15 | export const setMentionTriggerData = (editor: Editor, data: MentionTriggerData) => { |
| 16 | MENTION_TRIGGER_DATA_WEAK_MAP.set(editor, data) |
no test coverage detected
searching dependent graphs…