File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ function inner_stringify(
204204 strictNullHandling ,
205205 skipNulls ,
206206 encodeDotInKeys ,
207- // @ts -expect-error
207+ // @ts -ignore
208208 generateArrayPrefix === 'comma' && encodeValuesOnly && is_array ( obj ) ? null : encoder ,
209209 filter ,
210210 sort ,
@@ -224,7 +224,7 @@ function inner_stringify(
224224
225225function normalize_stringify_options (
226226 opts : StringifyOptions = defaults ,
227- ) : NonNullableProperties < StringifyOptions > {
227+ ) : NonNullableProperties < Omit < StringifyOptions , 'indices' > > & { indices ?: boolean } {
228228 if ( typeof opts . allowEmptyArrays !== 'undefined' && typeof opts . allowEmptyArrays !== 'boolean' ) {
229229 throw new TypeError ( '`allowEmptyArrays` option can only be `true` or `false`, when provided' ) ;
230230 }
@@ -299,7 +299,7 @@ function normalize_stringify_options(
299299 formatter : formatter ,
300300 serializeDate : typeof opts . serializeDate === 'function' ? opts . serializeDate : defaults . serializeDate ,
301301 skipNulls : typeof opts . skipNulls === 'boolean' ? opts . skipNulls : defaults . skipNulls ,
302- // @ts -expect-error
302+ // @ts -ignore
303303 sort : typeof opts . sort === 'function' ? opts . sort : null ,
304304 strictNullHandling :
305305 typeof opts . strictNullHandling === 'boolean' ? opts . strictNullHandling : defaults . strictNullHandling ,
You can’t perform that action at this time.
0 commit comments