naystack - v1.5.10
    Preparing search index...

    Type Alias QueryResponseType

    QueryResponseType: Awaited<ReturnType<T["call"]>>

    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.

    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>;
    }