No TS2554 in JavaScript files even though the argument is definitely required. #50331
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Bug Report
π Search Terms
javascript TS2554
π Version & Regression Information
required
β― Playground Link
π» Code
π Actual behavior
No type error when calling
requiredArgument()
π Expected behavior
A type error saying
Expected 1 arguments, but got 0. TS2554
, since this is also the current behaviour in TypeScript files.And when running the JavaScript code, you get a runtime error:
Related: #49869
The text was updated successfully, but these errors were encountered: