> For the complete documentation index, see [llms.txt](https://docs.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://docs.angular-package.dev/error/typeerror/properties/type.md).

# #type?

## `#type?`

Private [string-type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) property of the type that causes an error to be thrown(or not thrown).

{% code title="type-error.class.ts" %}

```typescript
#type?: string;
```

{% endcode %}

### Type

#### [<mark style="color:green;">`string`</mark>](https://www.typescriptlang.org/docs/handbook/basic-types.html#string)
