fix: trpc client composable type

This commit is contained in:
Robert Soriano
2022-05-23 11:08:52 -07:00
parent 2b57ab8791
commit 71bbbf2b86

View File

@@ -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
}