MELCloud & MELCloud Home API for Node.js - v48.2.0
    Preparing search index...

    Type Alias Result<T>

    Result: Failure | Success<T>

    Discriminated outcome for best-effort SDK calls. The success branch carries the parsed value; the failure branch carries an ApiRequestError variant the caller can branch on (retry on network, refresh on unauthorized, surface on validation, etc.) — distinctions a flat T | null would collapse.

    The error type is fixed to ApiRequestError rather than generic: every call site in the SDK fails through the same classification pipeline, so a <TError> parameter would be a degree of freedom nothing exercises.

    Type Parameters

    • T

      Type of the parsed value carried by the success branch.