Skip to content

Commit

Permalink
fix: make useQuery return data nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Blechlawine committed Aug 10, 2023
1 parent adeb5a5 commit 120ebc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type DecorateProcedure<
>(
input: MaybeRef<inferProcedureInput<TProcedure>>,
opts?: AsyncDataOptions<ResT, DataT, PickKeys> & { trpc?: TRPCRequestOptions },
) => AsyncData<PickFrom<DataT, PickKeys>, DataE>,
) => AsyncData<PickFrom<DataT, PickKeys> | null, DataE>,
query: Resolver<TProcedure>
} : TProcedure extends AnyMutationProcedure ? {
mutate: Resolver<TProcedure>
Expand Down

0 comments on commit 120ebc5

Please sign in to comment.