@karmaniverous/jeeves
    Preparing search index...

    Type Alias HandlerResult<E>

    HandlerResult:
        | {
            body: IsJsonEntry<E> extends true
                ? z.input<E["response"]>
                : Uint8Array | string | NodeJS.ReadableStream;
            headers?: ResponseHeaders;
            status: SuccessStatus;
        }
        | { body: ErrorBody; headers?: ResponseHeaders; status: ErrorStatus }

    What a handler returns: a success status with the entry's response, or an error status with an ErrorBody. Non-JSON entries return bytes, text or a stream on success.

    Type Parameters

    Type Declaration