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

Types defined using interface are not valid #143

Open
hanakannzashi opened this issue Mar 17, 2024 · 1 comment
Open

Types defined using interface are not valid #143

hanakannzashi opened this issue Mar 17, 2024 · 1 comment

Comments

@hanakannzashi
Copy link

hanakannzashi commented Mar 17, 2024

type Camel = {
  myName: string;
};

type Snake = SnakeCaseKeys<Camel>; // Snake is `{ my_name: string; }`

While

interface Camel {
  myName: string;
};

type Snake = SnakeCaseKeys<Camel>; // Snake is `{ myName: string; }`, this is not correct

This issue also exists in camelcase-keys

@yutak23
Copy link
Contributor

yutak23 commented Mar 18, 2024

I believe it's probably the same issue as the one mentioned below. There seems to be a tricky solution? outlined in that issue.

sindresorhus/camelcase-keys#114

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

2 participants