I have a generic function:
function hello<T>(n: number, s: string, thing: T): Array<T> {
return [thing]
}
const result = hello(1, 'string arg', 'generic arg')
result has type string[] which is expected.
However if I curry it:
function hello<T>(n: number, s: string, thing: T): Array<T> {
return [thing]
}
const fun1 = curry(hello)(1, 'string arg')
const result = fun1('generic arg')
result now has type unknown[].
How can I curry a generic function in Ramda whilst maintaining the type? I'm using Ramda 0.27.1