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
Is this the decision for overloads in general, given that there are many issues about making overloads automatically work with union types instead? #5766#12837#12885
Is this the decision for overloads in general, given that there are many issues about making overloads automatically work with union types instead? #5766#12837#12885
The current recommendation is to keep the overload list as short as possible. #12885 tracks doing something about unifying them or flagging them as errors.
TypeScript Version: master
Code
Expected behavior:
No error
Actual behavior:
Error: "Argument of type 'string | RegExp' is not assignable to parameter of type 'RegExp'."
The text was updated successfully, but these errors were encountered: