mapObjIndexed can't apply the Record type
tomzaku opened this issue · 0 comments
tomzaku commented
const a = {
more: {
b: 1,
c: 2
}
}
const x = {
more: {
y: 1,
z: 2
}
}
interface Params<T> {
more: T
}
const combineAx = <T extends Record<string, Params<any>>>(types: T) => {
const uT = mapObjIndexed((item) => item.more, types) //Throw err at here
return uT
}
combineAx({a,x})
Version:
"@types/ramda": "types/npm-ramda#dist",
"typescript": "^3.1.2",