Skip to content

Instantly share code, notes, and snippets.

@antongolub
Created January 17, 2020 12:42
Show Gist options
  • Save antongolub/d286008c79dd8b4f375996be55d1fe2f to your computer and use it in GitHub Desktop.
Save antongolub/d286008c79dd8b4f375996be55d1fe2f to your computer and use it in GitHub Desktop.
Class type
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