UNPKG

ioc-check

Version:

Runtime checks for error free dependency injection.

13 lines (12 loc) 439 B
/** * The type of a JavaScript class. The class might be abstract in TypeScript. * @typeParam Type The actual type (prototype) of the class. */ export type Constructable<Type> = Function & { prototype: Type; }; /** * The type of a JavaScript class. The class is NOT abstract in TypeScript. * @typeParam Type The actual type (prototype) of the class. */ export type InstantiableConstructable<Type> = new (...args: any[]) => Type;