You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this option can be statically determined, it's recommended to add `as const` to it.
93
93
94
-
If this option can be statically determined, it's recommended to add `as const` to it.
94
+
@default []
95
+
*/
96
+
readonlyexclude?: ReadonlyArray<string|RegExp>;
95
97
96
-
@default []
97
-
*/
98
-
readonlyexclude?: ReadonlyArray<string|RegExp>;
98
+
/**
99
+
Exclude children at the given object paths in dot-notation from being camel-cased. For example, with an object like `{a: {b: '🦄'}}`, the object path to reach the unicorn is `'a.b'`.
99
100
100
-
/**
101
-
Exclude children at the given object paths in dot-notation from being camel-cased. For example, with an object like `{a: {b: '🦄'}}`, the object path to reach the unicorn is `'a.b'`.
101
+
If this option can be statically determined, it's recommended to add `as const` to it.
102
102
103
-
If this option can be statically determined, it's recommended to add `as const` to it.
103
+
@default []
104
104
105
-
@default []
105
+
@example
106
+
```
107
+
import camelcaseKeys from 'camelcase-keys';
106
108
107
-
@example
108
-
```
109
-
camelcaseKeys({
110
-
a_b: 1,
111
-
a_c: {
112
-
c_d: 1,
113
-
c_e: {
114
-
e_f: 1
115
-
}
109
+
camelcaseKeys({
110
+
a_b: 1,
111
+
a_c: {
112
+
c_d: 1,
113
+
c_e: {
114
+
e_f: 1
116
115
}
117
-
}, {
118
-
deep: true,
119
-
stopPaths: [
120
-
'a_c.c_e'
121
-
]
122
-
}),
123
-
// {
124
-
// aB: 1,
125
-
// aC: {
126
-
// cD: 1,
127
-
// cE: {
128
-
// e_f: 1
129
-
// }
130
-
//}
131
-
//}
132
-
```
133
-
*/
134
-
readonlystopPaths?: readonlystring[];
135
-
136
-
/**
137
-
Uppercase the first character as in `bye-bye` → `ByeBye`.
138
-
139
-
@default false
140
-
*/
141
-
readonlypascalCase?: boolean;
142
-
}
143
-
}
116
+
}
117
+
}, {
118
+
deep: true,
119
+
stopPaths: [
120
+
'a_c.c_e'
121
+
]
122
+
}),
123
+
// {
124
+
// aB: 1,
125
+
// aC: {
126
+
// cD: 1,
127
+
// cE: {
128
+
// e_f: 1
129
+
// }
130
+
//}
131
+
//}
132
+
```
133
+
*/
134
+
readonlystopPaths?: readonlystring[];
135
+
136
+
/**
137
+
Uppercase the first character as in `bye-bye` → `ByeBye`.
138
+
139
+
@default false
140
+
*/
141
+
readonlypascalCase?: boolean;
142
+
};
144
143
145
144
/**
146
145
Convert object keys to camel case using [`camelcase`](https://github.com/sindresorhus/camelcase).
@@ -149,7 +148,7 @@ Convert object keys to camel case using [`camelcase`](https://github.com/sindres
0 commit comments