Skip to content

Instantly share code, notes, and snippets.

@codeBelt
Last active January 18, 2019 02:34
Show Gist options
  • Save codeBelt/b95c50f11ee748c8565a1f09401c6403 to your computer and use it in GitHub Desktop.
Save codeBelt/b95c50f11ee748c8565a1f09401c6403 to your computer and use it in GitHub Desktop.
TypeScript Interface for Classes
export type ConstructorType<T> = new (...args: any[]) => T;
export interface IConstructor<T> extends Function {
new (...args: any[]): T;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment