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
Rationale for the pattern: semi-dynamic event management engine. Example
The text was updated successfully, but these errors were encountered:
maxim-grishaev
changed the title
Non-explicit void type does not allow to skip argument
Implicit void type does not allow to skip argument
Jul 14, 2020
I'm not sure if this is fixable without some significant rework of the void parameter-skipping logic.
RyanCavanaugh
changed the title
Implicit void type does not allow to skip argumentvoid parameter type produced from generic inference doesn't allow skipping as argument
Jul 14, 2020
TypeScript Version: 3.7.2, 3.9.6, 4.0.0-beta
Search Terms: overload, void, indexed void, implicit void
Code
Expected behavior: both methods can be called with only one argument
Actual behavior:
TMap[K]
that is resolved tovoid
does not allow skip argumentAlthough, this one works as expected:
Playground Link:
generic class fails
generic method fails
Creator function v1 works
Creator function v2 fails
Related Issues: Not found
My StackOverflow question
Rationale for the pattern: semi-dynamic event management engine. Example
The text was updated successfully, but these errors were encountered: