Created
January 17, 2020 12:42
-
-
Save antongolub/d286008c79dd8b4f375996be55d1fe2f to your computer and use it in GitHub Desktop.
Class type
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
type Abstract<T= {}> = Function & {prototype: T} | |
type Constructor<T= {}> = new (...args: any[]) => T | |
type Class<T= {}> = Abstract<T> & Constructor<T> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment