(constructor: ConstructorOf<T>, scope: Scope)
| 19 | export const ayanamiInstances: Map<Scope, Instance[]> = new Map() |
| 20 | |
| 21 | export function createOrGetInstanceInScope<T>(constructor: ConstructorOf<T>, scope: Scope): T { |
| 22 | const instanceAtScope = getInstanceFrom(constructor, scope) |
| 23 | |
| 24 | return instanceAtScope ? instanceAtScope : createInstanceInScope(constructor, scope) |
| 25 | } |
| 26 | |
| 27 | function createInstanceInScope<T>(constructor: ConstructorOf<T>, scope: Scope): T { |
| 28 | const paramTypes: ConstructorOf<any>[] = |
no test coverage detected