Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TS] Result and result type are different #124

Open
JustPilz opened this issue Mar 25, 2024 · 2 comments
Open

[TS] Result and result type are different #124

JustPilz opened this issue Mar 25, 2024 · 2 comments

Comments

@JustPilz
Copy link

import camelcaseKeys from 'camelcase-keys';

const obj = { a1b_text: '' };

camelcaseKeys(obj, { deep: true }); // { a1bText: '' }
image
"camelcase-keys": "9.1.3",
@yutak23
Copy link
Contributor

yutak23 commented Mar 26, 2024

I feel it's relevant #85.

@hilleer
Copy link

hilleer commented Aug 21, 2024

How do you get the type interference to work to begin with? I just get a generic index signature with a key string and a value equal to whatever is provided:

Screenshot 2024-08-21 at 21 31 15

Screenshot 2024-08-21 at 21 31 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants