From ae0b7824f4cff5061b01f4a0cda1ae46af80c362 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Fri, 12 May 2023 11:19:37 -0700 Subject: [PATCH] fix: asyncData types --- src/client/types.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client/types.ts b/src/client/types.ts index 9a4f91d..a42c670 100644 --- a/src/client/types.ts +++ b/src/client/types.ts @@ -18,7 +18,6 @@ import type { AsyncDataOptions, KeysOf, PickFrom, - _Transform } from 'nuxt/dist/app/composables/asyncData' interface TRPCRequestOptions extends _TRPCRequestOptions { @@ -52,12 +51,11 @@ type DecorateProcedure< ? { useQuery: < TData = inferTransformedProcedureOutput, - Transform extends _Transform = _Transform, - PickKeys extends KeysOf = KeysOf, + PickKeys extends KeysOf = KeysOf, >( input: inferProcedureInput, - opts?: AsyncDataOptions & { trpc?: TRPCRequestOptions }, - ) => AsyncData, PickKeys>, TRPCClientErrorLike>, + opts?: AsyncDataOptions & { trpc?: TRPCRequestOptions }, + ) => AsyncData, TRPCClientErrorLike>, query: Resolver } : TProcedure extends AnyMutationProcedure ? { mutate: Resolver