您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }