(editor: Editor)
| 53 | } |
| 54 | |
| 55 | export const withProviderProtocol = (editor: Editor) => { |
| 56 | let providerProtocol = PROVIDERS.get(editor) |
| 57 | if (!providerProtocol) { |
| 58 | providerProtocol = createProviderProtocol(editor) |
| 59 | PROVIDERS.set(editor, providerProtocol) |
| 60 | } |
| 61 | return providerProtocol |
| 62 | } |
no test coverage detected
searching dependent graphs…