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
In javascript when defining a callback and applying the type to a function which doesn't return anything, an error of type TS2355 is raised. And this is the correct behavior.
However tsc fails to show both the file and the line number of the problem. This can be quite annoying when dealing with a very big project :D
🔎 Search Terms
TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
Bug Report
In javascript when defining a callback and applying the type to a function which doesn't return anything, an error of type TS2355 is raised. And this is the correct behavior.
However
tscfails to show both the file and the line number of the problem. This can be quite annoying when dealing with a very big project :D🔎 Search Terms
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
🙂 Expected behavior