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
Copy file name to clipboardExpand all lines: index.d.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -94,9 +94,9 @@ export type Options = {
94
94
/**
95
95
Exclude keys from being camel-cased.
96
96
97
-
If this option can be statically determined, it's recommended to add `as const` to it.
98
-
99
97
@default []
98
+
99
+
For correct TypeScript types when using this option with a string array, add `as const` to the array.
100
100
*/
101
101
readonlyexclude?: ReadonlyArray<string|RegExp>;
102
102
@@ -164,10 +164,10 @@ export type Options = {
164
164
/**
165
165
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'`.
166
166
167
-
If this option can be statically determined, it's recommended to add `as const` to it.
168
-
169
167
@default []
170
168
169
+
For correct TypeScript types when using this option, add `as const` to the array.
0 commit comments