Documentation
    Preparing search index...

    Type Alias MaybeResult<ResultType, ErrorType>

    MaybeResult:
        | { error: ErrorType; result?: undefined }
        | { error?: undefined; result: ResultType }

    Generic result with error

    Type Parameters

    • ResultType = unknown
    • ErrorType = Error