( pluginKey: K, implementation: Plugins[K] )
| 70 | } |
| 71 | |
| 72 | export function loadPlugin<K extends keyof Plugins>( |
| 73 | pluginKey: K, |
| 74 | implementation: Plugins[K] |
| 75 | ): void { |
| 76 | if (!plugins[pluginKey]) plugins[pluginKey] = implementation |
| 77 | } |
| 78 | /** Map / Set plugin */ |
| 79 | |
| 80 | export interface MapState extends ImmerBaseState { |
no outgoing calls
no test coverage detected
searching dependent graphs…