-
-
Notifications
You must be signed in to change notification settings - Fork 640
Query param type safety only works for the first param. #1525
Copy link
Copy link
Open
Labels
PRs welcomePRs are welcome to solve this issue!PRs are welcome to solve this issue!bugSomething isn't workingSomething isn't workinggood first issueStraightforward problem, solvable for first-time contributors without deep knowledge of the projectStraightforward problem, solvable for first-time contributors without deep knowledge of the projectopenapi-fetchRelevant to the openapi-fetch libraryRelevant to the openapi-fetch library
Metadata
Metadata
Assignees
Labels
PRs welcomePRs are welcome to solve this issue!PRs are welcome to solve this issue!bugSomething isn't workingSomething isn't workinggood first issueStraightforward problem, solvable for first-time contributors without deep knowledge of the projectStraightforward problem, solvable for first-time contributors without deep knowledge of the projectopenapi-fetchRelevant to the openapi-fetch libraryRelevant to the openapi-fetch library
Description
When supplying multiple query params. it seems that when entering the first one correct it turns in to some sort of "Any" type. Allowing for any type of param and no autocomplete either.
First one autocompletes fine.
the second one does not allow for auto complete and does not throw a type error.
this is the object that it expects
Reproduction
Have an endpoint that expects multiple query params and try to fill in more then 1 in the options payload.
Expected result
Type safety when typing multiple
Checklist