Function required

  • Verify that a variable is defined and optionally of a given type.

    Type Parameters

    • T

    Parameters

    • arg: T

      the argument to verify

    • name: string

      a descriptive name of arg

    • Optional type: (new (...args) => any)

      if provided, verify that arg is an instanceof this type

        • new (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns T

    the passed in arg value

Generated using TypeDoc