Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/common"

Index

Functions

getNetwork

getRmgNetwork

setNetwork

setRmgNetwork

validateParams

  • validateParams(params: object, expectedParams: string[], optionalParams?: string[], optionalCallback?: NodeCallback<any>): boolean
  • Helper function to validate the input parameters to an SDK method. Only validates for strings - if parameter is different, check that manually

    deprecated

    Parameters

    • params: object

      dictionary of parameter key-value pairs

    • expectedParams: string[]

      list of expected string parameters

    • Default value optionalParams: string[] = []

      list of optional string parameters

    • Optional optionalCallback: NodeCallback<any>

      if callback provided, must be a function

    Returns boolean

    true if validated, throws with reason otherwise

Generated using TypeDoc