Im having problems using compose in Typescript....
const rawHeaders = R.compose(
R.join('\n'),
R.map(x=>`${x[0]}: ${x[1]}`),
R.toPairs
)
I have tried the below, but it's brutal. Anyone know a way to make this work more elegantly?
const rawHeaders:Function = R.compose(
R.join('\n'),
R.map((x:[String, String]) =>`${x[0]}: ${x[1]}`),
(x:{s:String})=>R.toPairs(x))
)
I have also tried to use ts-ignore, which at present seems to be the best option.
const rawHeaders = R.compose(
R.join('\n'),
// @ts-ignore
R.map(x=>`${x[0]}: ${x[1]}`),
// @ts-ignore
R.toPairs
)