8000 Merge branch 'wheatjs:main' into main · wheatjs/vite-plugin-vue-gql@ce981e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce981e2

Browse files
committed
Merge branch 'wheatjs:main' into main
2 parents 2b307ec + f901734 commit ce981e2

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

client.d.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,21 @@ declare module 'vql' {
1818

1919
interface VqlClientHandle {
2020
useQuery<T = any, V = object>(_args: Omit<UseQueryArgs<T, V>, 'query'>): UseQueryResponse<T, V>
21-
useQuery<T = any, V = object>(name: string, _args: Omit<UseQueryArgs<T, V>, 'query'>): UseQueryResponse<T, V>
22-
useMutation<T = any, V = any>(): UseMutationResponse<T, V>
23-
useMutation<T = any, V = any>(name: string): UseMutationResponse<T, V>
21+
useQuery<T = any, V = object>(name: string, _args?: Omit<UseQueryArgs<T, V>, 'query'>): UseQueryResponse<T, V>
22+
useMutation<T = any, V = any>(name?: string): UseMutationResponse<T, V>
2423
useSubscription<T = any, R = T, V = object>(_args: Omit<UseSubscriptionArgs<T, V>, 'query'>, handler?: MaybeRef<SubscriptionHandler<T, R>>): UseSubscriptionResponse<T, R, V>
25-
useSubscription<T = any, R = T, V = object>(name: string, _args: Omit<UseSubscriptionArgs<T, V>, 'query'>, handler?: MaybeRef<SubscriptionHandler<T, R>>): UseSubscriptionResponse<T, R, V>
24+
useSubscription<T = any, R = T, V = object>(name: string, _args?: Omit<UseSubscriptionArgs<T, V>, 'query'>, handler?: MaybeRef<SubscriptionHandler<T, R>>): UseSubscriptionResponse<T, R, V>
2625
}
2726

2827
export function useClientHandle(): VqlClientHandle
2928

3029
export function useQuery<T = any, V = object>(_args: Omit<UseQueryArgs<T, V>, 'query'>): UseQueryResponse<T, V>
31-
export function useQuery<T = any, V = object>(name: string, _args: Omit<UseQueryArgs<T, V>, 'query'>): UseQueryResponse<T, V>
30+
export function useQuery<T = any, V = object>(name: string, _args?: Omit<UseQueryArgs<T, V>, 'query'>): UseQueryResponse<T, V>
3231

33-
export function useMutation<T = any, V = any>(): UseMutationResponse<T, V>
34-
export function useMutation<T = any, V = any>(name: string): UseMutationResponse<T, V>
32+
export function useMutation<T = any, V = any>(name?: string): UseMutationResponse<T, V>
3533

3634
export function useSubscription<T = any, R = T, V = object>(_args: Omit<UseSubscriptionArgs<T, V>, 'query'>, handler?: MaybeRef<SubscriptionHandler<T, R>>): UseSubscriptionResponse<T, R, V>
37-
export function useSubscription<T = any, R = T, V = object>(name: string, _args: Omit<UseSubscriptionArgs<T, V>, 'query'>, handler?: MaybeRef<SubscriptionHandler<T, R>>): UseSubscriptionResponse<T, R, V>
35+
export function useSubscription<T = any, R = T, V = object>(name: string, _args?: Omit<UseSubscriptionArgs<T, V>, 'query'>, handler?: MaybeRef<SubscriptionHandler<T, R>>): UseSubscriptionResponse<T, R, V>
3836
}
3937

4038
// declare module 'vql-gen' {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vite-plugin-vue-gql",
33
"description": "Vue SFC GraphQL Block",
4-
"version": "0.2.4",
4+
"version": "0.2.5",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
77
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)
0