Motif API
    Preparing search index...
    interface JsonElementErr<T = undefined, E = string> {
        code:
            | "InvalidJsonText"
            | "ElementIsNotDefined"
            | "JsonValueIsNotDefined"
            | "JsonValueIsNotOfTypeObject"
            | "JsonValueIsNotOfTypeString"
            | "JsonValueIsNotOfTypeStringOrNull"
            | "JsonValueIsNotOfTypeNumber"
            | "JsonValueIsNotOfTypeNumberOrNull"
            | "JsonValueIsNotOfTypeBoolean"
            | "JsonValueIsNotOfTypeBooleanOrNull"
            | "DecimalJsonValueIsNotOfTypeString"
            | "InvalidDecimal"
            | "JsonValueIsNotAnArray"
            | "JsonValueArrayElementIsNotAnObject"
            | "JsonValueArrayElementIsNotJson"
            | "JsonValueArrayElementIsNotAString"
            | "JsonValueArrayElementIsNotAStringOrNull"
            | "JsonValueArrayElementIsNotANumber"
            | "JsonValueArrayElementIsNotANumberOrNull"
            | "JsonValueArrayElementIsNotABoolean"
            | "JsonValueArrayElementIsNotABooleanOrNull";
        error: E;
        createOuter<OuterT = undefined>(outerError: string): Err<OuterT>;
        isErr(): this is Err<T, E>;
        isOk(): this is Ok<T, E>;
    }

    Type Parameters

    • T = undefined
    • E = string

    Hierarchy (View Summary)

    Index

    Properties

    Methods

    Properties

    code:
        | "InvalidJsonText"
        | "ElementIsNotDefined"
        | "JsonValueIsNotDefined"
        | "JsonValueIsNotOfTypeObject"
        | "JsonValueIsNotOfTypeString"
        | "JsonValueIsNotOfTypeStringOrNull"
        | "JsonValueIsNotOfTypeNumber"
        | "JsonValueIsNotOfTypeNumberOrNull"
        | "JsonValueIsNotOfTypeBoolean"
        | "JsonValueIsNotOfTypeBooleanOrNull"
        | "DecimalJsonValueIsNotOfTypeString"
        | "InvalidDecimal"
        | "JsonValueIsNotAnArray"
        | "JsonValueArrayElementIsNotAnObject"
        | "JsonValueArrayElementIsNotJson"
        | "JsonValueArrayElementIsNotAString"
        | "JsonValueArrayElementIsNotAStringOrNull"
        | "JsonValueArrayElementIsNotANumber"
        | "JsonValueArrayElementIsNotANumberOrNull"
        | "JsonValueArrayElementIsNotABoolean"
        | "JsonValueArrayElementIsNotABooleanOrNull"
    error: E

    Methods