Skip to content

Commit 7fdbd57

Browse files
committed
refactor: variable name and dev dependency
1 parent 0c1c52b commit 7fdbd57

3 files changed

Lines changed: 13 additions & 17 deletions

File tree

packages/react-query/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@
2020
"license": "ISC",
2121
"devDependencies": {
2222
"@internals/project-config": "workspace:^",
23+
"@kivotos/core": "workspace:^",
24+
"@kivotos/rest": "workspace:^",
2325
"@types/node": "^22.15.23",
2426
"@types/react": "^19.1.6",
2527
"type-fest": "^4.41.0",
2628
"vitest": "^3.0.9"
2729
},
2830
"dependencies": {
29-
"@kivotos/core": "workspace:^",
30-
"@kivotos/rest": "workspace:^",
31-
"@tanstack/react-query": "^5.71.5",
32-
"react": "^19.1.0"
31+
"@tanstack/react-query": "^5.71.5"
3332
}
3433
}

packages/react-query/src/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface KivotosQueryClient<TApiRouter extends ApiRouter> {
2626
>(
2727
method: TMethod,
2828
path: TPath,
29-
body: TPayload,
29+
payload: TPayload,
3030
options?: Omit<UseQueryOptions<TResponse, TError, TPayload>, 'queryKey'>
3131
) => UseQueryResult<TResponse, TError>
3232
useMutation: <
@@ -39,7 +39,7 @@ export interface KivotosQueryClient<TApiRouter extends ApiRouter> {
3939
>(
4040
method: TMethod,
4141
path: TPath,
42-
body: TPayload,
42+
payload: TPayload,
4343
options?: UseMutationOptions<TResponse, TError, TPayload, TContext>
4444
) => UseMutationResult<TResponse, TError, TPayload, TContext>
4545
queryOptions: <
@@ -51,7 +51,7 @@ export interface KivotosQueryClient<TApiRouter extends ApiRouter> {
5151
>(
5252
method: TMethod,
5353
path: TPath,
54-
body: TPayload,
54+
payload: TPayload,
5555
options?: Omit<UseQueryOptions<TResponse, TError, TPayload>, 'queryKey'>
5656
) => UseQueryOptions<TResponse, TError, TPayload>
5757
mutationOptions: <
@@ -64,7 +64,7 @@ export interface KivotosQueryClient<TApiRouter extends ApiRouter> {
6464
>(
6565
method: TMethod,
6666
path: TPath,
67-
body: TPayload,
67+
payload: TPayload,
6868
options?: UseMutationOptions<TResponse, TError, TPayload, TContext>
6969
) => UseMutationOptions<TResponse, TError, TPayload, TContext>
7070
}

pnpm-lock.yaml

Lines changed: 6 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)