import type { QueryResponseType } from "naystack/graphql";
import type getCurrentUser from "@/app/api/(graphql)/User/resolvers/get-current-user";
import type getDeal from "@/app/api/(graphql)/Deal/queries/get-deal";
interface Props {
user: QueryResponseType<typeof getCurrentUser>;
deal: QueryResponseType<typeof getDeal>;
}
Infers the TypeScript return type of a query definition's
.call()method. Use this to type component props that receive query results, ensuring full type safety.