File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ function inner_stringify(
204
204
strictNullHandling ,
205
205
skipNulls ,
206
206
encodeDotInKeys ,
207
- // @ts -expect-error
207
+ // @ts -ignore
208
208
generateArrayPrefix === 'comma' && encodeValuesOnly && is_array ( obj ) ? null : encoder ,
209
209
filter ,
210
210
sort ,
@@ -224,7 +224,7 @@ function inner_stringify(
224
224
225
225
function normalize_stringify_options (
226
226
opts : StringifyOptions = defaults ,
227
- ) : NonNullableProperties < StringifyOptions > {
227
+ ) : NonNullableProperties < Omit < StringifyOptions , 'indices' > > & { indices ?: boolean } {
228
228
if ( typeof opts . allowEmptyArrays !== 'undefined' && typeof opts . allowEmptyArrays !== 'boolean' ) {
229
229
throw new TypeError ( '`allowEmptyArrays` option can only be `true` or `false`, when provided' ) ;
230
230
}
@@ -299,7 +299,7 @@ function normalize_stringify_options(
299
299
formatter : formatter ,
300
300
serializeDate : typeof opts . serializeDate === 'function' ? opts . serializeDate : defaults . serializeDate ,
301
301
skipNulls : typeof opts . skipNulls === 'boolean' ? opts . skipNulls : defaults . skipNulls ,
302
- // @ts -expect-error
302
+ // @ts -ignore
303
303
sort : typeof opts . sort === 'function' ? opts . sort : null ,
304
304
strictNullHandling :
305
305
typeof opts . strictNullHandling === 'boolean' ? opts . strictNullHandling : defaults . strictNullHandling ,
You can’t perform that action at this time.
0 commit comments