# typeError

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.21.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / typeError

# Function: typeError()

```
function typeError(

   who, 

   what, 

   where, 

   type, 

   x): never;
```

**`Internal`**

Compiler internal for type errors

## Parameters[​](#parameters "Direct link to Parameters")

### who[​](#who "Direct link to who")

`string`

### what[​](#what "Direct link to what")

`string`

### where[​](#where "Direct link to where")

`string`

### type[​](#type "Direct link to type")

`string`

### x[​](#x "Direct link to x")

`any`

## Returns[​](#returns "Direct link to Returns")

`never`
