@nebius/js-sdk - v0.2.54
    Preparing search index...

    Type Alias EnumInstance<TName>

    Represents one generated enum value.

    Enum values are objects, not TypeScript numeric-enum members. Use toNumber() for a wire-compatible numeric code and toString() for the name.

    type EnumInstance<TName extends string = string> = {
        "[custom]"?: () => string;
        "[customJson]"?: () => unknown;
        "[ENUM_VALUE_META]"?: EnumValueMeta;
        code: number;
        name: TName;
        toNumber(): number;
        toString(): string;
    }

    Type Parameters

    • TName extends string = string
    Index
    "[custom]"?: () => string

    Formats the enum value for Node.js inspection.

    Type Declaration

      • (): string
      • Formats the enum value for Node.js inspection.

        Returns string

    "[customJson]"?: () => unknown

    Returns a JSON-safe value for SDK logging.

    Type Declaration

      • (): unknown
      • Returns a JSON-safe value for SDK logging.

        Returns unknown

    "[ENUM_VALUE_META]"?: EnumValueMeta

    Contains the enum value meta.

    code: number

    Contains the numeric protobuf value.

    name: TName

    Contains the protobuf value name.