選択できるのは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. }