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
// @ts-ignoreexportfunctiongetStatic<T>(target): T{// @ts-ignorereturntarget.__proto__.constructor;}exportclassA{staticb(){console.log('this is static b');}b(){console.log('this is b');}}exportleta=newA();exportconstc=getStatic<typeofA>(a);c.b();a.b();
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.7.0-dev.201xxxxx
Search Terms:
Code
can we use typeof on return type with T
but at real case i have write
Expected behavior:
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: