Comparing version 0.5.0 to 0.5.1
@@ -220,3 +220,3 @@ /** | ||
*/ | ||
type CamelCase<T extends string> = PascalCase<T> extends `${infer first}${infer rest}` ? `${Lowercase<first>}${rest}` : T; | ||
type CamelCase<T extends string> = T extends unknown ? PascalCase<T> extends `${infer first}${infer rest}` ? `${Lowercase<first>}${rest}` : T : never; | ||
/** | ||
@@ -223,0 +223,0 @@ * A strongly typed version of `toCamelCase` that works in both runtime and type level. |
{ | ||
"name": "string-ts", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Strongly-typed string functions.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
39995