Skip to content

Commit

Permalink
fix: use Regular expression literal instead of RegExp-contructor
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle committed Dec 13, 2024
1 parent e768f0d commit 7de9eeb
Show file tree
Hide file tree
Showing 120 changed files with 274 additions and 224 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-lions-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kubb/plugin-zod": minor
---

use Regular expression literal instead of RegExp-contructor
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ title: Changelog

## 3.3.0
- [`plugin-client`](/plugins/plugin-client): `client` to use `fetch` or `axios` as HTTP client
- [`plugin-zod`](/plugins/plugin-zod): use Regular expression literal instead of RegExp-contructor

## 3.2.0
- [`plugin-msw`](/plugins/plugin-msw): `paramsCasing` to define casing for params
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/pet/useAddPetHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { AddPetMutationRequest, AddPetMutationResponse, AddPet405 } from '../../models/AddPet.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/pet/useDeletePetHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { DeletePetMutationResponse, DeletePetPathParams, DeletePetHeaderParams, DeletePet400 } from '../../models/DeletePet.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { FindPetsByStatusQueryResponse, FindPetsByStatusQueryParams, FindPetsByStatus400 } from '../../models/FindPetsByStatus.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
import { queryOptions, useQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { FindPetsByStatusQueryResponse, FindPetsByStatusQueryParams, FindPetsByStatus400 } from '../../models/FindPetsByStatus.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { FindPetsByTagsQueryResponse, FindPetsByTagsQueryParams, FindPetsByTags400 } from '../../models/FindPetsByTags.ts'
import type { RequestConfig, ResponseConfig } from '@kubb/plugin-client/client'
import type { RequestConfig, ResponseConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
import { queryOptions, useQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { FindPetsByTagsQueryResponse, FindPetsByTagsQueryParams, FindPetsByTags400 } from '../../models/FindPetsByTags.ts'
import type { RequestConfig, ResponseConfig } from '@kubb/plugin-client/client'
import type { RequestConfig, ResponseConfig } from '@kubb/plugin-client/clients/axios'
import type { InfiniteData, QueryKey, InfiniteQueryObserverOptions, UseInfiniteQueryResult } from '@tanstack/react-query'
import { infiniteQueryOptions, useInfiniteQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { FindPetsByTagsQueryResponse, FindPetsByTagsQueryParams, FindPetsByTags400 } from '../../models/FindPetsByTags.ts'
import type { RequestConfig, ResponseConfig } from '@kubb/plugin-client/client'
import type { RequestConfig, ResponseConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/pet/useGetPetByIdHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { GetPetByIdQueryResponse, GetPetByIdPathParams, GetPetById400, GetPetById404 } from '../../models/GetPetById.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
import { queryOptions, useQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { GetPetByIdQueryResponse, GetPetByIdPathParams, GetPetById400, GetPetById404 } from '../../models/GetPetById.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/pet/useUpdatePetHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { UpdatePetMutationRequest, UpdatePetMutationResponse, UpdatePet400, UpdatePet404, UpdatePet405 } from '../../models/UpdatePet.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type {
UpdatePetWithFormMutationResponse,
UpdatePetWithFormPathParams,
UpdatePetWithFormQueryParams,
UpdatePetWithForm405,
} from '../../models/UpdatePetWithForm.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
import { queryOptions, useQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type {
UpdatePetWithFormMutationResponse,
UpdatePetWithFormPathParams,
UpdatePetWithFormQueryParams,
UpdatePetWithForm405,
} from '../../models/UpdatePetWithForm.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/pet/useUploadFileHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { UploadFileMutationRequest, UploadFileMutationResponse, UploadFilePathParams, UploadFileQueryParams } from '../../models/UploadFile.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { DeleteOrderMutationResponse, DeleteOrderPathParams, DeleteOrder400, DeleteOrder404 } from '../../models/DeleteOrder.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { GetInventoryQueryResponse } from '../../models/GetInventory.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import { queryOptions } from '@tanstack/react-query'

export const getInventoryQueryKey = () => ['v5', { url: '/store/inventory' }] as const
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { GetInventoryQueryResponse } from '../../models/GetInventory.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { GetOrderByIdQueryResponse, GetOrderByIdPathParams, GetOrderById400, GetOrderById404 } from '../../models/GetOrderById.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
import { queryOptions, useQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { GetOrderByIdQueryResponse, GetOrderByIdPathParams, GetOrderById400, GetOrderById404 } from '../../models/GetOrderById.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/store/usePlaceOrderHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { PlaceOrderMutationRequest, PlaceOrderMutationResponse, PlaceOrder405 } from '../../models/PlaceOrder.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { PlaceOrderPatchMutationRequest, PlaceOrderPatchMutationResponse, PlaceOrderPatch405 } from '../../models/PlaceOrderPatch.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/user/useCreateUserHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { CreateUserMutationRequest, CreateUserMutationResponse } from '../../models/CreateUser.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { CreateUsersWithListInputMutationRequest, CreateUsersWithListInputMutationResponse } from '../../models/CreateUsersWithListInput.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/user/useDeleteUserHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { DeleteUserMutationResponse, DeleteUserPathParams, DeleteUser400, DeleteUser404 } from '../../models/DeleteUser.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { GetUserByNameQueryResponse, GetUserByNamePathParams, GetUserByName400, GetUserByName404 } from '../../models/GetUserByName.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
import { queryOptions, useQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { GetUserByNameQueryResponse, GetUserByNamePathParams, GetUserByName400, GetUserByName404 } from '../../models/GetUserByName.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/user/useLoginUserHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { LoginUserQueryResponse, LoginUserQueryParams, LoginUser400 } from '../../models/LoginUser.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
import { queryOptions, useQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { LoginUserQueryResponse, LoginUserQueryParams, LoginUser400 } from '../../models/LoginUser.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/user/useLogoutUserHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { LogoutUserQueryResponse } from '../../models/LogoutUser.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
import { queryOptions, useQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { LogoutUserQueryResponse } from '../../models/LogoutUser.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/user/useUpdateUserHook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { UpdateUserMutationRequest, UpdateUserMutationResponse, UpdateUserPathParams } from '../../models/UpdateUser.ts'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { UseMutationOptions } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'

Expand Down
4 changes: 2 additions & 2 deletions examples/vue-query/src/gen/hooks/useAddPet.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { AddPetMutationRequest, AddPetMutationResponse, AddPet405 } from '../models/AddPet'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { MutationObserverOptions } from '@tanstack/vue-query'
import type { MaybeRef } from 'vue'
import { useMutation } from '@tanstack/vue-query'
Expand Down
4 changes: 2 additions & 2 deletions examples/vue-query/src/gen/hooks/useCreateUser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { CreateUserMutationRequest, CreateUserMutationResponse } from '../models/CreateUser'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { MutationObserverOptions } from '@tanstack/vue-query'
import type { MaybeRef } from 'vue'
import { useMutation } from '@tanstack/vue-query'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { CreateUsersWithListInputMutationRequest, CreateUsersWithListInputMutationResponse } from '../models/CreateUsersWithListInput'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { MutationObserverOptions } from '@tanstack/vue-query'
import type { MaybeRef } from 'vue'
import { useMutation } from '@tanstack/vue-query'
Expand Down
4 changes: 2 additions & 2 deletions examples/vue-query/src/gen/hooks/useDeleteOrder.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { DeleteOrderMutationResponse, DeleteOrderPathParams, DeleteOrder400, DeleteOrder404 } from '../models/DeleteOrder'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { MutationObserverOptions } from '@tanstack/vue-query'
import type { MaybeRef } from 'vue'
import { useMutation } from '@tanstack/vue-query'
Expand Down
4 changes: 2 additions & 2 deletions examples/vue-query/src/gen/hooks/useDeletePet.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { DeletePetMutationResponse, DeletePetPathParams, DeletePetHeaderParams, DeletePet400 } from '../models/DeletePet'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { MutationObserverOptions } from '@tanstack/vue-query'
import type { MaybeRef } from 'vue'
import { useMutation } from '@tanstack/vue-query'
Expand Down
4 changes: 2 additions & 2 deletions examples/vue-query/src/gen/hooks/useDeleteUser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { DeleteUserMutationResponse, DeleteUserPathParams, DeleteUser400, DeleteUser404 } from '../models/DeleteUser'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { MutationObserverOptions } from '@tanstack/vue-query'
import type { MaybeRef } from 'vue'
import { useMutation } from '@tanstack/vue-query'
Expand Down
4 changes: 2 additions & 2 deletions examples/vue-query/src/gen/hooks/useFindPetsByStatus.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import client from '@kubb/plugin-client/client'
import client from '@kubb/plugin-client/clients/axios'
import type { FindPetsByStatusQueryResponse, FindPetsByStatusQueryParams, FindPetsByStatus400 } from '../models/FindPetsByStatus'
import type { RequestConfig } from '@kubb/plugin-client/client'
import type { RequestConfig } from '@kubb/plugin-client/clients/axios'
import type { QueryKey, QueryObserverOptions, UseQueryReturnType } from '@tanstack/vue-query'
import type { MaybeRef } from 'vue'
import { queryOptions, useQuery } from '@tanstack/vue-query'
Expand Down
Loading

0 comments on commit 7de9eeb

Please sign in to comment.