Sanity Library Reference Docs
    Preparing search index...

    The slice of a SanityClient the intake recipe needs — narrow so shells can hand in any authenticated client and tests fake exactly what the recipe reads. timeout is the per-request cap in ms — the real client honors it by aborting the request, which is what actually closes the socket (a Promise.race alone cannot).

    interface TelemetryIntakeClient {
        request: <T>(
            opts: {
                body?: unknown;
                method?: string;
                tag?: string;
                timeout?: number;
                uri: string;
            },
        ) => Promise<T>;
    }
    Index

    Properties

    Properties

    request: <T>(
        opts: {
            body?: unknown;
            method?: string;
            tag?: string;
            timeout?: number;
            uri: string;
        },
    ) => Promise<T>