(name: string, impl: any)
| 28 | |
| 29 | // TODO Type |
| 30 | export function registerImpl(name: string, impl: any) { |
| 31 | if (__DEV__) { |
| 32 | if (implsStore[name]) { |
| 33 | error(`Already has an implementation of ${name}.`); |
| 34 | } |
| 35 | } |
| 36 | implsStore[name] = impl; |
| 37 | } |
| 38 | |
| 39 | export function getImpl(name: string) { |
| 40 | if (__DEV__) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…