mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
fix: trpc client composable type
This commit is contained in:
@@ -59,7 +59,7 @@ export async function useAsyncQuery<
|
||||
} as any
|
||||
}
|
||||
|
||||
export function useClient() {
|
||||
export function useClient(): TRPCClient<AppRouter> {
|
||||
const { $client } = useNuxtApp()
|
||||
return $client as TRPCClient<AppRouter>
|
||||
return $client
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user