---
jsApi: true
title: "[F] isErrorModel"

---
```ts
isErrorModel(program, target): boolean
```

Check if the type is an error model or a descendant of an error model.

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | [`Program`](../interfaces/Program.md) |
| `target` | [`Type`](../type-aliases/Type.md) |

## Returns

`boolean`
