From 1ec41a7d768502a31abb33bf86b0539e5b4b6541 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 13:03:36 +0000 Subject: [PATCH] chore(internal): fix some types (#1082) --- src/internal/qs/stringify.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/qs/stringify.ts b/src/internal/qs/stringify.ts index d0c450341..67497561a 100644 --- a/src/internal/qs/stringify.ts +++ b/src/internal/qs/stringify.ts @@ -204,7 +204,7 @@ function inner_stringify( strictNullHandling, skipNulls, encodeDotInKeys, - // @ts-expect-error + // @ts-ignore generateArrayPrefix === 'comma' && encodeValuesOnly && is_array(obj) ? null : encoder, filter, sort, @@ -224,7 +224,7 @@ function inner_stringify( function normalize_stringify_options( opts: StringifyOptions = defaults, -): NonNullableProperties { +): NonNullableProperties> & { indices?: boolean } { if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); } @@ -299,7 +299,7 @@ function normalize_stringify_options( formatter: formatter, serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, - // @ts-expect-error + // @ts-ignore sort: typeof opts.sort === 'function' ? opts.sort : null, strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,