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
Rambda type: export function once<T extends AnyFunction>(func: T): T;
And the expected type is more:
exportconstonce=<TextendsAnyFunction,C=unknown>(fn: T,context?: C): T
Context(which version of library)
9.1.1
The text was updated successfully, but these errors were encountered:
jerome-benoit
changed the title
[BUG] once TS type definition miss to context argument and its tpe
[BUG] once() TS type definition miss to context argument and its type
Mar 12, 2024
selfrefactor
changed the title
[BUG] once() TS type definition miss to context argument and its type
R.once TS type definition miss to context argument and its type
Mar 18, 2024
The proposed type definition including the complete once() function arguments is backward compatible with the previous one. Without it, one can't bound it to another instance if using typescript without tsc error, which is a legit use case.
Describe the bug
Rambda type:
export function once<T extends AnyFunction>(func: T): T;
And the expected type is more:
Context(which version of library)
9.1.1
The text was updated successfully, but these errors were encountered: