Skip to content

Commit

Permalink
fix useQuery overload with inlined parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaddix committed Nov 8, 2023
1 parent 38ff86e commit 8a16a33
Show file tree
Hide file tree
Showing 17 changed files with 97 additions and 97 deletions.
16 changes: 8 additions & 8 deletions examples/pet-client-v3/src/api/axios-client-recommended/Query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export function useFindPetsByStatusQuery<TSelectData = Types.Pet[], TError = unk
* @param status Status values that need to be considered for filter
* @return successful operation
*/
export function useFindPetsByStatusQuery<TSelectData = Types.Pet[], TError = unknown>(status: Types.Status[], options?: UseQueryOptions<Types.Pet[], TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useFindPetsByStatusQuery<TSelectData = Types.Pet[], TError = unknown>(status: Types.Status[], options?: Omit<UseQueryOptions<Types.Pet[], TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useFindPetsByStatusQuery<TSelectData = Types.Pet[], TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<Types.Pet[], TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -353,7 +353,7 @@ export function useFindPetsByTagsQuery<TSelectData = Types.Pet[], TError = unkno
* @return successful operation
* @deprecated
*/
export function useFindPetsByTagsQuery<TSelectData = Types.Pet[], TError = unknown>(tags: string[], options?: UseQueryOptions<Types.Pet[], TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useFindPetsByTagsQuery<TSelectData = Types.Pet[], TError = unknown>(tags: string[], options?: Omit<UseQueryOptions<Types.Pet[], TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useFindPetsByTagsQuery<TSelectData = Types.Pet[], TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<Types.Pet[], TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -453,7 +453,7 @@ export function useGetPetByIdQuery<TSelectData = Types.Pet, TError = unknown>(dt
* @param petId ID of pet to return
* @return successful operation
*/
export function useGetPetByIdQuery<TSelectData = Types.Pet, TError = unknown>(petId: number, options?: UseQueryOptions<Types.Pet, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetPetByIdQuery<TSelectData = Types.Pet, TError = unknown>(petId: number, options?: Omit<UseQueryOptions<Types.Pet, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetPetByIdQuery<TSelectData = Types.Pet, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<Types.Pet, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -697,7 +697,7 @@ export function useGetOrderByIdQuery<TSelectData = Types.Order, TError = unknown
* @param orderId ID of pet that needs to be fetched
* @return successful operation
*/
export function useGetOrderByIdQuery<TSelectData = Types.Order, TError = unknown>(orderId: number, options?: UseQueryOptions<Types.Order, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetOrderByIdQuery<TSelectData = Types.Order, TError = unknown>(orderId: number, options?: Omit<UseQueryOptions<Types.Order, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetOrderByIdQuery<TSelectData = Types.Order, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<Types.Order, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -832,7 +832,7 @@ function __getInventory() {
* Returns pet inventories by status
* @return successful operation
*/
export function useGetInventoryQuery<TSelectData = { [key: string]: number; }, TError = unknown>(options?: UseQueryOptions<{ [key: string]: number; }, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetInventoryQuery<TSelectData = { [key: string]: number; }, TError = unknown>(options?: Omit<UseQueryOptions<{ [key: string]: number; }, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetInventoryQuery<TSelectData = { [key: string]: number; }, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<{ [key: string]: number; }, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -983,7 +983,7 @@ export function useGetUserByNameQuery<TSelectData = Types.User, TError = unknown
* @param username The name that needs to be fetched. Use user1 for testing.
* @return successful operation
*/
export function useGetUserByNameQuery<TSelectData = Types.User, TError = unknown>(username: string, options?: UseQueryOptions<Types.User, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetUserByNameQuery<TSelectData = Types.User, TError = unknown>(username: string, options?: Omit<UseQueryOptions<Types.User, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetUserByNameQuery<TSelectData = Types.User, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<Types.User, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -1199,7 +1199,7 @@ export function useLoginUserQuery<TSelectData = string, TError = unknown>(dto: L
* @param password The password for login in clear text
* @return successful operation
*/
export function useLoginUserQuery<TSelectData = string, TError = unknown>(username: string, password: string, options?: UseQueryOptions<string, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useLoginUserQuery<TSelectData = string, TError = unknown>(username: string, password: string, options?: Omit<UseQueryOptions<string, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useLoginUserQuery<TSelectData = string, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<string, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -1284,7 +1284,7 @@ function __logoutUser() {
* Logs out current logged in user session
* @return successful operation
*/
export function useLogoutUserQuery<TSelectData = void, TError = unknown>(options?: UseQueryOptions<void, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useLogoutUserQuery<TSelectData = void, TError = unknown>(options?: Omit<UseQueryOptions<void, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useLogoutUserQuery<TSelectData = void, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<void, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down
16 changes: 8 additions & 8 deletions examples/pet-client-v3/src/api/axios-client/Query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export function useFindPetsByStatusQuery<TSelectData = Types.Pet[], TError = unk
* @param status Status values that need to be considered for filter
* @return successful operation
*/
export function useFindPetsByStatusQuery<TSelectData = Types.Pet[], TError = unknown>(status: Types.Status[], options?: UseQueryOptions<Types.Pet[], TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useFindPetsByStatusQuery<TSelectData = Types.Pet[], TError = unknown>(status: Types.Status[], options?: Omit<UseQueryOptions<Types.Pet[], TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useFindPetsByStatusQuery<TSelectData = Types.Pet[], TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<Types.Pet[], TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -355,7 +355,7 @@ export function useFindPetsByTagsQuery<TSelectData = Types.Pet[], TError = unkno
* @return successful operation
* @deprecated
*/
export function useFindPetsByTagsQuery<TSelectData = Types.Pet[], TError = unknown>(tags: string[], options?: UseQueryOptions<Types.Pet[], TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useFindPetsByTagsQuery<TSelectData = Types.Pet[], TError = unknown>(tags: string[], options?: Omit<UseQueryOptions<Types.Pet[], TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useFindPetsByTagsQuery<TSelectData = Types.Pet[], TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<Types.Pet[], TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -455,7 +455,7 @@ export function useGetPetByIdQuery<TSelectData = Types.Pet, TError = unknown>(dt
* @param petId ID of pet to return
* @return successful operation
*/
export function useGetPetByIdQuery<TSelectData = Types.Pet, TError = unknown>(petId: number, options?: UseQueryOptions<Types.Pet, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetPetByIdQuery<TSelectData = Types.Pet, TError = unknown>(petId: number, options?: Omit<UseQueryOptions<Types.Pet, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetPetByIdQuery<TSelectData = Types.Pet, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<Types.Pet, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -699,7 +699,7 @@ export function useGetOrderByIdQuery<TSelectData = Types.Order, TError = unknown
* @param orderId ID of pet that needs to be fetched
* @return successful operation
*/
export function useGetOrderByIdQuery<TSelectData = Types.Order, TError = unknown>(orderId: number, options?: UseQueryOptions<Types.Order, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetOrderByIdQuery<TSelectData = Types.Order, TError = unknown>(orderId: number, options?: Omit<UseQueryOptions<Types.Order, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetOrderByIdQuery<TSelectData = Types.Order, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<Types.Order, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -834,7 +834,7 @@ function __getInventory() {
* Returns pet inventories by status
* @return successful operation
*/
export function useGetInventoryQuery<TSelectData = { [key: string]: number; }, TError = unknown>(options?: UseQueryOptions<{ [key: string]: number; }, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetInventoryQuery<TSelectData = { [key: string]: number; }, TError = unknown>(options?: Omit<UseQueryOptions<{ [key: string]: number; }, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetInventoryQuery<TSelectData = { [key: string]: number; }, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<{ [key: string]: number; }, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -985,7 +985,7 @@ export function useGetUserByNameQuery<TSelectData = Types.User, TError = unknown
* @param username The name that needs to be fetched. Use user1 for testing.
* @return successful operation
*/
export function useGetUserByNameQuery<TSelectData = Types.User, TError = unknown>(username: string, options?: UseQueryOptions<Types.User, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetUserByNameQuery<TSelectData = Types.User, TError = unknown>(username: string, options?: Omit<UseQueryOptions<Types.User, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useGetUserByNameQuery<TSelectData = Types.User, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<Types.User, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -1201,7 +1201,7 @@ export function useLoginUserQuery<TSelectData = string, TError = unknown>(dto: L
* @param password The password for login in clear text
* @return successful operation
*/
export function useLoginUserQuery<TSelectData = string, TError = unknown>(username: string, password: string, options?: UseQueryOptions<string, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useLoginUserQuery<TSelectData = string, TError = unknown>(username: string, password: string, options?: Omit<UseQueryOptions<string, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useLoginUserQuery<TSelectData = string, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<string, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down Expand Up @@ -1286,7 +1286,7 @@ function __logoutUser() {
* Logs out current logged in user session
* @return successful operation
*/
export function useLogoutUserQuery<TSelectData = void, TError = unknown>(options?: UseQueryOptions<void, TError, TSelectData>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useLogoutUserQuery<TSelectData = void, TError = unknown>(options?: Omit<UseQueryOptions<void, TError, TSelectData>, 'queryKey'>, axiosConfig?: Partial<AxiosRequestConfig>): UseQueryResult<TSelectData, TError>;
export function useLogoutUserQuery<TSelectData = void, TError = unknown>(...params: any []): UseQueryResult<TSelectData, TError> {
let options: UseQueryOptions<void, TError, TSelectData> | undefined = undefined;
let axiosConfig: AxiosRequestConfig |undefined;
Expand Down
Loading

0 comments on commit 8a16a33

Please sign in to comment.