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