1234567891011121314151617 |
- /**
- * Type for what object is instances of. Also applicable to "Constructor of T" as Types/Classes/Constructors are interchangable in TS.
- */
- export interface Type<T> {
- new(...args: any[]): T;
- }
-
- export type Constructor<T> = Function & { prototype: T }
-
- /**
- * Generic `ClassDecorator` type
- */
- export type GenericClassDecorator<T> = (target: T) => void;
-
- export interface ISingleton{
- initialize?(): void | Promise<void>
- }
|