Overview
The `TypeError` object
Last updated
The `TypeError` object
Last updated
TypeError {}
The TypeError
object is an extension of the CommonError
class and is thrown when an operation could not be performed, typically(but not exclusively) when a value is not of the expected type, with the message built from the described problem and its solution, optional an explicit identification and type, on the given or stored template.
public get [Symbol.toStringTag](): string
The |
#type?: string Private string-type property of the type that causes an error to be thrown(or not thrown). |
public static isTypeError(): value is TypeError<Id, Type>
Checks whether the |