You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Types.ts 427B

1234567891011121314151617
  1. /**
  2. * Type for what object is instances of. Also applicable to "Constructor of T" as Types/Classes/Constructors are interchangable in TS.
  3. */
  4. export interface Type<T> {
  5. new(...args: any[]): T;
  6. }
  7. export type Constructor<T> = Function & { prototype: T }
  8. /**
  9. * Generic `ClassDecorator` type
  10. */
  11. export type GenericClassDecorator<T> = (target: T) => void;
  12. export interface ISingleton{
  13. initialize?(): void | Promise<void>
  14. }