You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a type T representing instances of a class C, the type Class is the type of the class C
Similar can be achieved in Typescript by typeof Foo but requires Foo to be a value, not a type. So can't be used with generics
Constructor part can be easily described by: type Constructor<T> = new (...args) => T;. This of course won't include any static members and won't verify inheritance (classes in Typescript not treated as nominal)
Maybe it is good enough to include only "constructor part"?
The text was updated successfully, but these errors were encountered:
Class<T>
Similar can be achieved in Typescript by
typeof Foo
but requiresFoo
to be a value, not a type. So can't be used with genericsConstructor part can be easily described by:
type Constructor<T> = new (...args) => T;
. This of course won't include any static members and won't verify inheritance (classes in Typescript not treated as nominal)Maybe it is good enough to include only "constructor part"?
The text was updated successfully, but these errors were encountered: