ramda-adjunct
ramda-adjunct copied to clipboard
improve renameKeys type
Improves upon the object
type in renameKeys. Not sure if this can be merged as is, but maybe it can be extended by someone who knows the project better than me
Hi @mendrik,
Thanks for contributing. Would you be able to provide a test as well? See here how tests are done: https://github.com/char0n/ramda-adjunct/tree/master/test
Hi @mendrik,
Thanks for contributing. Would you be able to provide a test as well? See here how tests are done: https://github.com/char0n/ramda-adjunct/tree/master/test
sorry if I misunderstand something, but the tests are testing the functionality while I have only improved upon the typescript types. Is there a way to test the typescript types for validity?
Hi @mendrik,
Sorry, wrong url. Here is the right location: https://github.com/char0n/ramda-adjunct/tree/master/types/test
ok so I got stuck with this:
import * as RA from 'ramda-adjunct';
RA.renameKeys({ A: 'B'} as const, { A: 1, C: 4 }).B; // $ExpectType number
doesn't seem to work
ok so I got stuck with this:
import * as RA from 'ramda-adjunct'; RA.renameKeys({ A: 'B'} as const, { A: 1, C: 4 }).B; // $ExpectType number
doesn't seem to work
I've issued a PR that should remedy your issue: https://github.com/char0n/ramda-adjunct/pull/2368. Rebase on top of the master
branch and things should work as expected again.
closing, sorry it is constantly misbehaving for me in the tests, even after rebasing.
@mendrik,
Sorry for your trouble. I was able to successfully incorporate your change into the codebase in https://github.com/char0n/ramda-adjunct/pull/2370. I've properly attributed you in the commit.
Again sorry for the trouble and thanks for contributing!
@mendrik,
Sorry for your trouble. I was able to successfully incorporate your change into the codebase in #2370. I've properly attributed you in the commit.
Again sorry for the trouble and thanks for contributing!
awesome, thanks a bunch for not letting it go to waste! :)