We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CamelCasedPropertiesDeep
Tagged
type UUID = Tagged<string, "UUID">; type User = { user_id: UUID; } type Article = { name: string; view_count: number; author: User; } type MyType = CamelCasedPropertiesDeep<Article>;
Got:
Expected:
UUID type
The text was updated successfully, but these errors were encountered:
Possible solution:
export type CamelCasedPropertiesDeep< Value, Options extends CamelCaseOptions = {preserveConsecutiveUppercase: true}, > = Value extends Function ? Value : Value extends UnknownArray ? CamelCasedPropertiesArrayDeep<Value> : Value extends Set<infer U> ? Set<CamelCasedPropertiesDeep<U, Options>> : Value extends Tag<any, any> ? Value : { [K in keyof Value as CamelCase<K, Options>]: CamelCasedPropertiesDeep< Value[K], Options >; };
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Got:
Expected:
UUID type
Upvote & Fund
The text was updated successfully, but these errors were encountered: