Options
All
  • Public
  • Public/Protected
  • All
Menu

A result containing parameters for command response

Hierarchy

  • ParameterSetType<Result>
    • Result

Index

Constructors

Properties

paramSet: Parameter<Key>[] = []

Methods

  • Adds a parameter to the parameter set

    tparam

    P the Parameter type

    Type parameters

    Parameters

    • parameter: P

      the parameter to add

    Returns Result

    a new instance of this parameter set with the given parameter added

  • Create a new Result instance when a parameter is added or removed

    Parameters

    Returns Result

    a new instance of Result with provided data

  • Returns true if the key exists in the parameter set

    tparam

    S the Key value

    Type parameters

    Parameters

    Returns boolean

    true if the key is found

  • madd<P>(parametersToAdd: P[]): Result
  • Adds several parameters to the parameter set

    note

    madd ensures check for duplicate key

    tparam

    P must be a subclass of Parameter

    Type parameters

    Parameters

    • parametersToAdd: P[]

      the list of parameters to add to the parameter set

    Returns Result

    a new instance of this parameter set with the given parameter added

  • Remove a parameter from the parameter set by key

    tparam

    S the Key value

    Type parameters

    Parameters

    Returns Result

    a new T, where T is a parameter set child with the key removed or identical if the key is not present

  • size(): number

Generated using TypeDoc