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
I use F.Pipe for a mixin class factory function.
the factory type is type ClassExtends<T = {}> = new (...args: any[]) => T; type ClassFactory<SubI, SupI = {}> = <Super extends ClassExtends<SupI>>( superclass: Super, ) => ClassExtends<SubI> & Super;
the pipe function is : export const pipe: F.Pipe = (...args: any) => { // The pipe return type, aka the composed function signature return (input: any) => args.reduce((val: any, fn: any) => fn(val), input); };
the result of 6.15 is right,but 9.6 is wrong.
I guess is Curry<Function<P, R0>> did the thing.
I copy 6.15 pipe to make a workaround.
I suggest CurryFunction make a mode for pipe. because this cause different behaviour in pipe.
Reproduce the bug
// REPL or a link to your repository if applicable.// A *self-contained* demonstration of the problem.
Expected behavior
Possible Solution
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
馃悶 Bug Report
Describe the bug
I use F.Pipe for a mixin class factory function.
the factory type is
type ClassExtends<T = {}> = new (...args: any[]) => T; type ClassFactory<SubI, SupI = {}> = <Super extends ClassExtends<SupI>>( superclass: Super, ) => ClassExtends<SubI> & Super;
the pipe function is :
export const pipe: F.Pipe = (...args: any) => { // The pipe return type, aka the composed function signature return (input: any) => args.reduce((val: any, fn: any) => fn(val), input); };
the result of 6.15 is right,but 9.6 is wrong.
I guess is Curry<Function<P, R0>> did the thing.
I copy 6.15 pipe to make a workaround.
I suggest CurryFunction make a mode for pipe. because this cause different behaviour in pipe.
Reproduce the bug
Expected behavior
Possible Solution
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: