Code:
const eq = encodeQueryParams(
{ x: StringParam },
{ x: "true" }
);
const y = stringify(eq);
Error:
Argument of type 'Partial<EncodedValueMap<{ x: QueryParamConfig<string | null | undefined, string | null | undefined>; }>>' is not assignable to parameter of type 'Record<string, string | number | boolean | Stringifiable[] | null | undefined>'.
Property 'x' is incompatible with index signature.
Type 'string | (string | null)[] | null | undefined' is not assignable to type 'string | number | boolean | Stringifiable[] | null | undefined'.
Type '(string | null)[]' is not assignable to type 'string | number | boolean | Stringifiable[] | null | undefined'.
Type '(string | null)[]' is not assignable to type 'Stringifiable[]'.
Type 'string | null' is not assignable to type 'Stringifiable'.
Type 'null' is not assignable to type 'Stringifiable'.
Initially I thought this was an error with how ArrayParams we're handled but it seems to affect every param type I've tried, also not sure if this is an issue related to this library or query-string but this made most sense to me.
query-sting@6.13.4 release
Code:
Error:
Initially I thought this was an error with how ArrayParams we're handled but it seems to affect every param type I've tried, also not sure if this is an issue related to this library or query-string but this made most sense to me.
query-sting@6.13.4 release