Optionalmessage: stringOptionaloptions: ArgumentTypeErrorOptionsOptionalcauseOptional Readonlyparam0-based index of the parameter that causes this exception.
Optional Readonlyparamname of the parameter that causes this exception.
OptionalstackOptional ReadonlytargetOptional ReadonlyvalueStatic OptionalprepareOptional override for formatting stack traces
StaticstackStaticcaptureCreate .stack property on a target object
OptionalconstructorOpt: FunctionStaticcreateShort-hand function to create an ArgumentTypeError instace with general message.
OptionalparamName: stringOptionalmessage: string
The error that is thrown when a
null(orundefined) value is passed to a method that does not accept it as a valid argument.Remarks
By convention of jscorlib, we recommend not distinguishing between
nullandundefined.