> For the complete documentation index, see [llms.txt](https://error.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://error.angular-package.dev/typeerror/methods.md).

# Methods

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>public static</strong> <a href="/pages/QO0W5kr9Si42Q6UmxCju"><strong>define()</strong></a><strong>:</strong> <mark style="color:green;">TypeError</mark><<mark style="color:green;">Id</mark>, <mark style="color:green;">Type</mark>><br>Defines the <a href="/pages/wXU3s9b3bJiG5x5vWa8P"><code>TypeError</code></a> instance with the <a href="/pages/UAsNmVmOuYGxNypELFFh">message</a> built of the given required <a href="/pages/QO0W5kr9Si42Q6UmxCju#problem-string"><code>problem</code></a>, <a href="/pages/QO0W5kr9Si42Q6UmxCju#fix-string"><code>fix</code></a> and optional <a href="/pages/QO0W5kr9Si42Q6UmxCju#id-id"><code>id</code></a> and <a href="/pages/QO0W5kr9Si42Q6UmxCju#type-type"><code>type</code></a> on the given or stored <a href="/pages/QO0W5kr9Si42Q6UmxCju#template-typeerror.template"><code>template</code></a>.</p> |
| <p><strong>public static</strong> <a href="/pages/LgNTaulQwQU9AGxOKSbU"><strong>isTypeError()</strong></a><strong>:</strong> value is <mark style="color:green;">TypeError</mark><<mark style="color:green;">Id</mark>, <mark style="color:green;">Type</mark>><br>Checks whether the <a href="#value-any"><code>value</code></a> of <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html#any"><code>any</code></a> type is an instance of <a href="/pages/wXU3s9b3bJiG5x5vWa8P"><code>TypeError</code></a> of any or the given <a href="#type-string"><code>type</code></a> and <a href="/pages/LgNTaulQwQU9AGxOKSbU#id-id">identification</a>.</p>                                                                                                                                                                                                |
