File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,18 @@ export type CamelCaseKeys<
4545> = T extends readonly any [ ]
4646 // Handle arrays or tuples.
4747 ? {
48+ [ P in keyof T ] : T [ P ] extends Record < string , any > | readonly any [ ]
4849 // eslint-disable-next-line @typescript-eslint/ban-types
49- [ P in keyof T ] : { } extends CamelCaseKeys < T [ P ] >
50- ? T [ P ]
51- : CamelCaseKeys <
52- T [ P ] ,
53- Deep ,
54- IsPascalCase ,
55- Exclude ,
56- StopPaths
57- > ;
50+ ? { } extends CamelCaseKeys < T [ P ] >
51+ ? T [ P ]
52+ : CamelCaseKeys <
53+ T [ P ] ,
54+ Deep ,
55+ IsPascalCase ,
56+ Exclude ,
57+ StopPaths
58+ >
59+ : T [ P ] ;
5860 }
5961 : T extends Record < string , any >
6062 // Handle objects.
Original file line number Diff line number Diff line change 6161 "devDependencies" : {
6262 "ava" : " ^4.3.0" ,
6363 "matcha" : " ^0.7.0" ,
64- "tsd" : " ^0.20 .0" ,
64+ "tsd" : " ^0.23 .0" ,
6565 "xo" : " ^0.49.0"
6666 },
6767 "xo" : {
You can’t perform that action at this time.
0 commit comments