Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
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>
- }
|