Skip to content

Commit 28a0b29

Browse files
committed
expose Input
1 parent 0c42d67 commit 28a0b29

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.changeset/loud-planets-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect-app/vue": patch
3+
---
4+
5+
expose Input

packages/vue/src/makeClient.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,10 @@ export const makeClient = <RT_, RTHooks>(
14041404
[Key in keyof typeof client]:
14051405
& typeof client[Key]
14061406
& RequestWithExtensions<RT | RTHooks, typeof client[Key]>
1407-
& { mutate: MutationWithExtensions<RT | RTHooks, typeof client[Key]> }
1407+
& {
1408+
mutate: MutationWithExtensions<RT | RTHooks, typeof client[Key]>
1409+
Input: typeof client[Key] extends RequestHandlerWithInput<infer I, any, any, any, any, any> ? I : never
1410+
}
14081411
& Queries<RT, typeof client[Key]>
14091412
}
14101413
)

0 commit comments

Comments
 (0)