Sanity Library Reference Docs
    Preparing search index...

    Type Alias Response<R, F>Beta

    Response: [F] extends [never]
        ? JsonResponse<R>
        : F extends "markdown" | "plain" ? string : JsonResponse<R>

    What a route resolves with: its success response body, undefined for 204 No Content, and unknown where the spec gives no JSON schema. A format of markdown or plain resolves with the text.

    Type Parameters