Skip to content

Commit 40e8284

Browse files
chore(internal): fix some types (#1082)
1 parent b5dbd62 commit 40e8284

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/internal/qs/stringify.ts

+3-3
Original file line numberDiff line numberDiff 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

225225
function 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,

0 commit comments

Comments
 (0)