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
Perhaps you mean "type inference" and not "type assertion"? Or at least I don't see any type assertion happening here. Also it seems that "overload" should be part of any search terms.
TypeScript Version: 3.6.0-dev.20190601
Search Terms:
Code
Expected behavior:
TypeScript should recognize there is a function-overload which matches the
TArgs
- orTArg1
- andTArg2
-type.Actual behavior:
TypeScript reports an error expecting the argument-types to match the last declaration of the function.
Playground Link:
Link to Playground
This issue is, for example, affecting the
promisify
-function ofnode.js
'util
-module:The text was updated successfully, but these errors were encountered: