Closed fResult closed 6 months ago
same here, even with the basic example seem that neither chain
or compose
can infer any type
const gen = () => 0;
const addOne = (x: number) => x + 1;
const g = chain(gen, addOne);
same here, even with the basic example seem that neither
chain
orcompose
can infer any typeconst gen = () => 0; const addOne = (x: number) => x + 1; const g = chain(gen, addOne);
I already fixed this.
You can check this pull request.
https://github.com/rayepps/radash/pull/370
I have a question...
How can I finish this package.json?
From the
chain
function insrc/curry.ts
file, it has no type inferred for this function. https://github.com/rayepps/radash/blob/c3c9dac9c5da8102a8c62b1afbbb7efb9c64c31e/src/curry.ts#L5-L10When I use the
chain
function, it returnsany[]
.Actually, I expected the return type should be
Uppercase<string>[]
.So, I have to define the type for the
upperNames
variable.I want the type inferred for the
chain
function, that makes me annoyed a bit. 🥹Anyone can make it able to infer?