Beignet API reference
    Preparing search index...

    Type Alias EndpointSuccessResult<TContract>

    Successful endpoint result returned by safeCall(...).

    type EndpointSuccessResult<TContract extends HttpContractConfig> = {
        data: InferSuccessResponse<TContract>;
        ok: true;
        response: Response;
        status: number;
    }

    Type Parameters

    Index

    Properties

    Properties

    Parsed response body.

    ok: true

    Success discriminator.

    response: Response

    Native fetch response.

    status: number

    HTTP status code.