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

Inconsistency between change case with non-literal strings #513

Closed
PindaPixel opened this issue Nov 17, 2022 · 0 comments · Fixed by #531
Closed

Inconsistency between change case with non-literal strings #513

PindaPixel opened this issue Nov 17, 2022 · 0 comments · Fixed by #531

Comments

@PindaPixel
Copy link

PindaPixel commented Nov 17, 2022

I've noticed that KebabCase<string> returns type string, but CamelCase<string> returns type literal "".

Camel case returning type "" on output:
image

Kebab returning type string on output:
image

Versions used:

"type-fest": "^3.2.0",
"typescript": "^4.9.3"

I haven't tested all case conversions, but I know that PascalCase behaves the same as CamelCase.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • The funding will be given to active contributors.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
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

Successfully merging a pull request may close this issue.

1 participant