Sanity Library Reference Docs
    Preparing search index...

    Interface ResponseEvent<T>

    interface ResponseEvent<T = unknown> {
        type: "response";
        body: T;
        url: string;
        method: string;
        statusCode: number;
        statusMessage?: string;
        headers: Record<string, string>;
    }

    Type Parameters

    • T = unknown
    Index

    Properties

    type: "response"
    body: T
    url: string
    method: string
    statusCode: number
    statusMessage?: string
    headers: Record<string, string>