Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 30x 2897x | import type { Query } from "@tanstack/react-query";
import type {
TRPCError,
TRPCQueryKey,
TRPCQueryOutput,
TRPCTanstackQueryKey,
} from "~app/trpc";
export type EmptyMutateOptions = {
onSuccess?: () => void;
onError?: () => void;
onSettled?: () => void;
};
export const typeQuery = <K extends TRPCQueryKey>(query: Query, _key: K) =>
query as unknown as Query<
TRPCQueryOutput<K>,
TRPCError,
TRPCQueryOutput<K>,
TRPCTanstackQueryKey<K>
>;
|