Last active
January 18, 2019 02:34
-
-
Save codeBelt/b95c50f11ee748c8565a1f09401c6403 to your computer and use it in GitHub Desktop.
TypeScript Interface for Classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type ConstructorType<T> = new (...args: any[]) => T; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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