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

Fix change-case/keys types #337

Merged

Conversation

marcingajda
Copy link
Contributor

I fixed the TypeScript for change-case-keys, so it allows to pass options.

Instead of this

export declare const camelCase: (object: unknown, depth?: number) => unknown;
export declare const capitalCase: (object: unknown, depth?: number) => unknown;
...

it produces now this:

export declare const camelCase: (object: unknown, depth?: number, options?: changeCase.PascalCaseOptions | undefined) => unknown;
export declare const capitalCase: (object: unknown, depth?: number, options?: changeCase.Options | undefined) => unknown;
...

@blakeembrey blakeembrey merged commit fec0211 into blakeembrey:main Apr 3, 2024
2 checks passed
@blakeembrey
Copy link
Owner

Thanks for the catch!

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 this pull request may close these issues.

None yet

2 participants