composing a curried function type clash 🤨 #205
Answered
by
millsp
sugoidesune
asked this question in
Q&A
-
I took these straight from the examples and the curried function inside compose is throwing an error. declare const compose: Function.Compose
declare function curry<Fn extends Function.Function>(fn: Fn): Function.Curry<Fn>
const a = curry((a1: number, d2: number) => `${a1 + d2}`)
const c = (c1: string[]) => [c1]
const b = (b1: string) => [b1]
compose(c, b, a)(23,42) You can try it in the ts-toolbelt codesandbox: The error:
|
Beta Was this translation helpful? Give feedback.
Answered by
millsp
Feb 28, 2021
Replies: 1 comment 9 replies
-
Thanks for reporting this, I have fixed it in the latest release. |
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
millsp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for reporting this, I have fixed it in the latest release.