Closed chimon2000 closed 5 years ago
In the site documentation, there is an example of pathOr with a string for the path property:
pathOr
R.pathOr(1, 'a.b', {a: {b: 2}}) // => 2
This causes an error when using TypeScript because the definitions do not allow a string like they do with the path function. https://github.com/selfrefactor/rambda/blob/b27e21dc1ba97fb500fcd0b9fdd59d81b7340cb1/index.d.ts#L391-L396
path
Duly noted, will fix it in two days as I cannot do so earlier than that.
In the site documentation, there is an example of
pathOr
with a string for the path property:This causes an error when using TypeScript because the definitions do not allow a string like they do with the
path
function. https://github.com/selfrefactor/rambda/blob/b27e21dc1ba97fb500fcd0b9fdd59d81b7340cb1/index.d.ts#L391-L396