TypeScript Version: master (as of #26283)
Code
/** * @template {new (...args: any[]) => any} T * @param {T} SuperClass */functionmyMixin(SuperClass){returnclassextendsSuperClass{method(){return0;}}};classBase{}constMixed=myMixin(Base);constinstance=newMixed();instance.method();// Correctly typed in signature helpinstance.meshod();// But not checkedRun with allowJs, checkJs, and strict.
Expected behavior:
Error at meshod.
Actual behavior:
No error.
TypeScript Version: master (as of #26283)
Code
Run with
allowJs,checkJs, andstrict.Expected behavior:
Error at
meshod.Actual behavior:
No error.