Accessors

The `TypeError` object accessors

public get name(): string The get accessor obtains error name of a string type, set to 'TypeError' that is being thrown.

public get type(): Type | undefined The get accessor obtains the type of generic type variable Type that causes an error to be thrown(or not thrown) if set, otherwise returns undefined.

public get [Symbol.toStringTag](): string The get accessor, with the help of toStringTag, changes the default tag to 'TypeError' for an instance of TypeError.

Last updated