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 took these straight from the examples and the curried function inside compose is throwing an error.
The curried function has the correct type.
The composed function works without the curried one.
const a: Function.Curry<(a1: number, d2: number) => string>
Argument of type 'Curry<(a1: number, d2: number) => string>' is not assignable to parameter of type
'Function<[a1?: number | x, d2?: number | x], string>'.
Type 'Curry<(a1: number, d2: number) => string>' is not assignable to type 'string'.ts(2345)
millsp
changed the title
I took these straight from the examples and the curried function inside compose is throwing an error.
Curry and Pipe/Compose incompatibility
Feb 28, 2021
I took these straight from the examples and the curried function inside compose is throwing an error.
The curried function has the correct type.
The composed function works without the curried one.
You can try it in the ts-toolbelt codesandbox:
https://codesandbox.io/s/ts-toolbelt-x4jly?file=/src/index.ts
The error:
Originally posted by @sugoidesune in #205
The text was updated successfully, but these errors were encountered: