Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "values"

Index

Variables

Const IS_LAZY_VALUE

IS_LAZY_VALUE: unique symbol = Symbol('IS_LAZY_VALUE')

Functions

getGlobalValues

  • getGlobalValues(): Value[]
  • Returns the list of global values.

    Returns Value[]

    The global values.

replaceValues

  • Handles a value as string and replaces placeholders.

    Parameters

    Returns string

    The output value.

replaceValuesByObjects

  • replaceValuesByObjects(objs: Value | Value[], val: any): string
  • Handles a value as string and replaces placeholders (by objects).

    Parameters

    • objs: Value | Value[]

      One or more values.

    • val: any

      The input value.

    Returns string

    The output value.

storageToArray

  • storageToArray(storage: ego_contracts.ValueStorage): Value[]
  • Converts a value storage to an array.

    Parameters

    • storage: ego_contracts.ValueStorage

      The storage.

    Returns Value[]

    The list of value objects.

toValueStorage

  • toValueStorage(values: Value | Value[]): ego_contracts.ValueStorage
  • Converts a list of value objects to a grouped storage (object).

    Parameters

    Returns ego_contracts.ValueStorage

    The storage.

toValues

  • Creates value objects from a storage of value entries.

    Parameters

    Returns Value[]

    The list of value objects.

Generated using TypeDoc