type-fest 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ts41/camel-case.d.ts +1 -1
package/package.json
CHANGED
package/ts41/camel-case.d.ts
CHANGED
|
@@ -63,4 +63,4 @@ const dbResult: CamelCasedProperties<ModelProps> = {
|
|
|
63
63
|
|
|
64
64
|
@category Template Literals
|
|
65
65
|
*/
|
|
66
|
-
export type CamelCase<K> = K extends string ? CamelCaseStringArray<Split<K, WordSeparators>> : K;
|
|
66
|
+
export type CamelCase<K> = K extends string ? K extends Uppercase<K> ? Lowercase<K> : CamelCaseStringArray<Split<K, WordSeparators>> : K;
|