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
Actual behavior: Compiler throws an error: No overload matches this call (1) number | number[] is not assignable to number, (2) number | number[] is not assignable to number[]
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 3.9.6 (tested also with 4.0.0-beta and Nightly in TS Playground and still present)
Search Terms: overload
Code
Expected behavior: Compiles without an error
Actual behavior: Compiler throws an error: No overload matches this call (1)
number | number[]
is not assignable tonumber
, (2)number | number[]
is not assignable tonumber[]
Playground Link: Here
Related Issues: I haven't found any
Edit: I've tweaked the code in order to fit the type declaration. This change has no impact on the actual bug I'm reporting.
The text was updated successfully, but these errors were encountered: