You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type '{ params?: QueryParams | undefined; } | undefined' is not assignable to parameter of type 'Record<string, string | number | boolean | string[] | number[] | undefined> | undefined'.
Type '{ params?: QueryParams | undefined; }' is not assignable to type 'Record<string, string | number | boolean | string[] | number[] | undefined>'.
Property 'params' is incompatible with index signature.
Type 'QueryParams | undefined' is not assignable to type 'string | number | boolean | string[] | number[] | undefined'.
Type 'QueryParams' is not assignable to type 'string | number | boolean | string[] | number[] | undefined'.
Type 'QueryParams' is missing the following properties from type 'number[]': length, pop, push, concat, and 28 more.
Hello! Thanks for your issue!
Currently, swagger-typescript-api don't have support explode property but I think I'll add this support today or at next day hopefully
Release 1.80 should partially fix that issue (type errors + generating query string with nested objects)
About fields minimum, maximum:
Currently Api class structure is not able to somehow include that information into data.
And I imagine a bit what needs to do with result Api class structure it isn't worth it :)
Getting type error in addQueryParams
using typescript 3.9
where QueryParams is generated as
With
explode
set the query url would have?page=0&page-size=0
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: