Skip to content

Commit 7a9ebd0

Browse files
authored
wip: correct types
1 parent 3b18ade commit 7a9ebd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type DecorateProcedure<
5858
KeyT extends QueryKey = QueryKey,
5959
>(
6060
input: MaybeRefOrGetter<inferProcedureInput<TProcedure>>,
61-
opts?: MaybeRef<
61+
opts?: MaybeRefOrGetter<
6262
Omit<UnwrapRef<UseQueryOptions<ResT, DataT>>, 'queryKey'> & {
6363
trpc?: TRPCRequestOptions
6464
queryKey?: KeyT
@@ -77,9 +77,9 @@ export type DecorateProcedure<
7777
VariablesT = inferProcedureInput<TProcedure>,
7878
ContextT = unknown,
7979
>(
80-
opts?: UseMutationOptions<DataT, DataE, VariablesT, ContextT> & {
80+
opts?: MaybeRefOrGetter<UseMutationOptions<DataT, DataE, VariablesT, ContextT> & {
8181
trpc?: TRPCRequestOptions
82-
},
82+
}>,
8383
) => UseMutationReturnType<DataT, DataE, VariablesT, ContextT>
8484
}
8585
: TProcedure extends AnySubscriptionProcedure

0 commit comments

Comments
 (0)