3 ms·
That’s a JS WAT, and it’s fair to say TS should error, but TS is explicitly not a linter and the code is “correct” so it’s unclear what else it should do.
by eyelidlessness 4y ago
That’s a JS WAT, and it’s fair to say TS should error, but TS is explicitly not a linter and the code is “correct” so it’s unclear what else it should do.
- jjnoakes 4y agoI disagree that the code is "correct". TypeScript warns for passing too many arguments to functions in other contexts even though that could also be called "correct" because even though it works, it was probably unintentional.