Accessors

The `TypeError` object accessors

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

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

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

Last updated