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
Notes: Both top-level functions (in either .js or .ts) and class instance methods in .ts files have correct type defs generated in both 3.7.5 and 3.8.0-dev.20200128
The text was updated successfully, but these errors were encountered:
Emitting the undefined even outside strict mode is, IMO fine; but I'm not 100% sure if that's desirable (since the code in question may not actually handle undefined)
TypeScript Version: 3.7.5 and 3.8.0-dev.20200128
Search Terms: "default value" parameter "type definition"
Code
x.js:
Expected behavior:
x.d.ts should be:
Actual behavior:
x.d.ts contains invalid typescript:
Playground Link: Playground Link
Related Issues: None
Notes: Both top-level functions (in either .js or .ts) and class instance methods in .ts files have correct type defs generated in both 3.7.5 and 3.8.0-dev.20200128
The text was updated successfully, but these errors were encountered: