generated from stijnvanhulle/template
-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: build of
@kubb/core
with correct types
- Loading branch information
1 parent
f25bc02
commit 967efeb
Showing
68 changed files
with
860 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@kubb/core": patch | ||
--- | ||
|
||
build of `@kubb/core` with correct types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { build, getSource } from '@kubb/core' | ||
import { write } from '@kubb/fs' | ||
import { pluginClient } from '@kubb/plugin-client' | ||
import { pluginOas } from '@kubb/plugin-oas' | ||
|
||
async function run() { | ||
const { files } = await build({ | ||
config: { | ||
root: '.', | ||
input: { | ||
data: '', | ||
}, | ||
output: { | ||
path: './gen', | ||
}, | ||
plugins: [pluginOas(), pluginClient()], | ||
}, | ||
}) | ||
|
||
for (const file of files) { | ||
const source = await getSource(file) | ||
|
||
await write(source, file.path) | ||
} | ||
} | ||
|
||
run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
export type { AddPetMutationKey } from './useAddPet' | ||
export type { CreateUserMutationKey } from './useCreateUser' | ||
export type { CreateUsersWithListInputMutationKey } from './useCreateUsersWithListInput' | ||
export type { DeleteOrderMutationKey } from './useDeleteOrder' | ||
export type { DeletePetMutationKey } from './useDeletePet' | ||
export type { DeleteUserMutationKey } from './useDeleteUser' | ||
export type { FindPetsByStatusQueryKey } from './useFindPetsByStatus' | ||
export type { FindPetsByTagsQueryKey } from './useFindPetsByTags' | ||
export type { GetInventoryQueryKey } from './useGetInventory' | ||
export type { GetOrderByIdQueryKey } from './useGetOrderById' | ||
export type { GetPetByIdQueryKey } from './useGetPetById' | ||
export type { GetUserByNameQueryKey } from './useGetUserByName' | ||
export type { LoginUserQueryKey } from './useLoginUser' | ||
export type { LogoutUserQueryKey } from './useLogoutUser' | ||
export type { PlaceOrderMutationKey } from './usePlaceOrder' | ||
export type { UpdatePetMutationKey } from './useUpdatePet' | ||
export type { UpdatePetWithFormMutationKey } from './useUpdatePetWithForm' | ||
export type { UpdateUserMutationKey } from './useUpdateUser' | ||
export type { UploadFileMutationKey } from './useUploadFile' | ||
export { addPetMutationKey, useAddPet } from './useAddPet' | ||
export { createUserMutationKey, useCreateUser } from './useCreateUser' | ||
export { createUsersWithListInputMutationKey, useCreateUsersWithListInput } from './useCreateUsersWithListInput' | ||
export { deleteOrderMutationKey, useDeleteOrder } from './useDeleteOrder' | ||
export { deletePetMutationKey, useDeletePet } from './useDeletePet' | ||
export { deleteUserMutationKey, useDeleteUser } from './useDeleteUser' | ||
export { findPetsByStatusQueryKey, findPetsByStatusQueryOptions, useFindPetsByStatus } from './useFindPetsByStatus' | ||
export { findPetsByTagsQueryKey, findPetsByTagsQueryOptions, useFindPetsByTags } from './useFindPetsByTags' | ||
export { getInventoryQueryKey, getInventoryQueryOptions, useGetInventory } from './useGetInventory' | ||
export { getOrderByIdQueryKey, getOrderByIdQueryOptions, useGetOrderById } from './useGetOrderById' | ||
export { getPetByIdQueryKey, getPetByIdQueryOptions, useGetPetById } from './useGetPetById' | ||
export { getUserByNameQueryKey, getUserByNameQueryOptions, useGetUserByName } from './useGetUserByName' | ||
export { loginUserQueryKey, loginUserQueryOptions, useLoginUser } from './useLoginUser' | ||
export { logoutUserQueryKey, logoutUserQueryOptions, useLogoutUser } from './useLogoutUser' | ||
export { placeOrderMutationKey, usePlaceOrder } from './usePlaceOrder' | ||
export { updatePetMutationKey, useUpdatePet } from './useUpdatePet' | ||
export { updatePetWithFormMutationKey, useUpdatePetWithForm } from './useUpdatePetWithForm' | ||
export { updateUserMutationKey, useUpdateUser } from './useUpdateUser' | ||
export { uploadFileMutationKey, useUploadFile } from './useUploadFile' | ||
export type { AddPetMutationKey } from './useAddPet.ts' | ||
export type { CreateUserMutationKey } from './useCreateUser.ts' | ||
export type { CreateUsersWithListInputMutationKey } from './useCreateUsersWithListInput.ts' | ||
export type { DeleteOrderMutationKey } from './useDeleteOrder.ts' | ||
export type { DeletePetMutationKey } from './useDeletePet.ts' | ||
export type { DeleteUserMutationKey } from './useDeleteUser.ts' | ||
export type { FindPetsByStatusQueryKey } from './useFindPetsByStatus.ts' | ||
export type { FindPetsByTagsQueryKey } from './useFindPetsByTags.ts' | ||
export type { GetInventoryQueryKey } from './useGetInventory.ts' | ||
export type { GetOrderByIdQueryKey } from './useGetOrderById.ts' | ||
export type { GetPetByIdQueryKey } from './useGetPetById.ts' | ||
export type { GetUserByNameQueryKey } from './useGetUserByName.ts' | ||
export type { LoginUserQueryKey } from './useLoginUser.ts' | ||
export type { LogoutUserQueryKey } from './useLogoutUser.ts' | ||
export type { PlaceOrderMutationKey } from './usePlaceOrder.ts' | ||
export type { UpdatePetMutationKey } from './useUpdatePet.ts' | ||
export type { UpdatePetWithFormMutationKey } from './useUpdatePetWithForm.ts' | ||
export type { UpdateUserMutationKey } from './useUpdateUser.ts' | ||
export type { UploadFileMutationKey } from './useUploadFile.ts' | ||
export { addPetMutationKey, useAddPet } from './useAddPet.ts' | ||
export { createUserMutationKey, useCreateUser } from './useCreateUser.ts' | ||
export { createUsersWithListInputMutationKey, useCreateUsersWithListInput } from './useCreateUsersWithListInput.ts' | ||
export { deleteOrderMutationKey, useDeleteOrder } from './useDeleteOrder.ts' | ||
export { deletePetMutationKey, useDeletePet } from './useDeletePet.ts' | ||
export { deleteUserMutationKey, useDeleteUser } from './useDeleteUser.ts' | ||
export { findPetsByStatusQueryKey, findPetsByStatusQueryOptions, useFindPetsByStatus } from './useFindPetsByStatus.ts' | ||
export { findPetsByTagsQueryKey, findPetsByTagsQueryOptions, useFindPetsByTags } from './useFindPetsByTags.ts' | ||
export { getInventoryQueryKey, getInventoryQueryOptions, useGetInventory } from './useGetInventory.ts' | ||
export { getOrderByIdQueryKey, getOrderByIdQueryOptions, useGetOrderById } from './useGetOrderById.ts' | ||
export { getPetByIdQueryKey, getPetByIdQueryOptions, useGetPetById } from './useGetPetById.ts' | ||
export { getUserByNameQueryKey, getUserByNameQueryOptions, useGetUserByName } from './useGetUserByName.ts' | ||
export { loginUserQueryKey, loginUserQueryOptions, useLoginUser } from './useLoginUser.ts' | ||
export { logoutUserQueryKey, logoutUserQueryOptions, useLogoutUser } from './useLogoutUser.ts' | ||
export { placeOrderMutationKey, usePlaceOrder } from './usePlaceOrder.ts' | ||
export { updatePetMutationKey, useUpdatePet } from './useUpdatePet.ts' | ||
export { updatePetWithFormMutationKey, useUpdatePetWithForm } from './useUpdatePetWithForm.ts' | ||
export { updateUserMutationKey, useUpdateUser } from './useUpdateUser.ts' | ||
export { uploadFileMutationKey, useUploadFile } from './useUploadFile.ts' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/vue-query/src/gen/hooks/useCreateUsersWithListInput.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.