Class SingleUcAttr<T>

Typed charge metadata attribute that stores single, last assigned, value.

Type Parameters

  • out T = unknown

    Attribute value type.

Hierarchy

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Extracts attribute value from metadata.

    Parameters

    • data: undefined | T

      Stored attribute data or undefined if nothing stored.

    • meta: UcMeta

      Source metadata to extract the value from.

    Returns undefined | T

    Either extracted attribute value, or undefined if nothing extracted.

  • Extracts all attribute values.

    Parameters

    • data: undefined | T

      Stored attribute data or undefined if nothing stored.

    • meta: UcMeta

      Source metadata to extract values from.

    Returns T[]

    Either array of extracted attribute values, or empty array if nothing extracted.

  • Stores attribute value to metadata.

    Parameters

    • data: undefined | T

      Already stored attribute data or undefined if nothing stored yet.

    • value: T

      The input value to store.

    • meta: UcMeta

      Target metadata to store the value in.

    Returns T

    Value to store.

Generated using TypeDoc