Sanity Library Reference Docs
    Preparing search index...

    Type Alias RequestInit<R, F>Beta

    RequestInit: Slot<"params", PathParams<R>> & Slot<
        "query",
        Context.QueryParams<R>,
    > & { query?: { format?: F } } & Slot<"headers", HeaderParams<R>> & (
        [Body<R>] extends [never] ? { body?: never } : { body: Body<R> }
    ) & { signal?: AbortSignal; tag?: string }

    The second argument of context.request: the route's path parameters, query, headers and body, each typed from the spec, plus signal and tag.

    Type Parameters