camelcase-keys
Advanced tools
Comparing version 9.1.1 to 9.1.2
@@ -6,3 +6,4 @@ import type {CamelCase, PascalCase} from 'type-fest'; | ||
type ObjectOptional = Record<string, unknown> | undefined; | ||
// Allow union with, for example, `undefined` and `null`. | ||
type ObjectUnion = Record<string, unknown> | unknown; | ||
@@ -42,3 +43,3 @@ /** | ||
export type CamelCaseKeys< | ||
T extends ObjectOptional | readonly any[], | ||
T extends ObjectUnion | readonly any[], | ||
Deep extends boolean = false, | ||
@@ -76,3 +77,3 @@ IsPascalCase extends boolean = false, | ||
: [Deep] extends [true] | ||
? T[P] extends ObjectOptional | readonly any[] | ||
? T[P] extends ObjectUnion | readonly any[] | ||
? CamelCaseKeys< | ||
@@ -79,0 +80,0 @@ T[P], |
{ | ||
"name": "camelcase-keys", | ||
"version": "9.1.1", | ||
"version": "9.1.2", | ||
"description": "Convert object keys to camel case", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12672
265