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
typeMethodOptions={opt1?: stringopt2?: number}classTest{method(options?: MethodOptions){}}vartest=newTest();test.method("ciao");//there should be an error heretest.method(1);// idemtest.method([]);// idem
TypeScript Version: 2.3.4
Code
directly on playground
Expected behavior:
Type checking errors
Actual behavior:
No errors
The text was updated successfully, but these errors were encountered: