( classType: string | (new (...args: any[]) => BasePlugin), )
| 128 | * @returns a plugin instance or undefined |
| 129 | */ |
| 130 | export function get( |
| 131 | classType: string | (new (...args: any[]) => BasePlugin), |
| 132 | ): BasePlugin | undefined { |
| 133 | for (const name in cache) { |
| 134 | if (typeof classType === "string") { |
| 135 | if (classType === name) { |
| 136 | return cache[name]; |
| 137 | } |
| 138 | } else if (cache[name] instanceof classType) { |
| 139 | return cache[name]; |
| 140 | } |
| 141 | } |
| 142 | } |
nothing calls this directly
no outgoing calls
no test coverage detected