[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Type](https://evolu.dev/docs/api-reference/common/Type) › createBaseTypeErrorFormatter

```ts
function createBaseTypeErrorFormatter<Error>(): TypeErrorFormatter<Error>;
```

Defined in: [packages/common/src/Type.ts:730](https://github.com/evoluhq/evolu/blob/e7144e2bbe9069362b62dec1b64a8aa922b8f1b0/packages/common/src/Type.ts#L730)

Creates a formatter function for a base [TypeError](https://evolu.dev/docs/api-reference/common/Type/interfaces/TypeError).

This formatter is specifically for Base Types that only need a simple error
message indicating that the value is not of the expected type.

### Example

```ts
export const formatStringError = createBaseTypeErrorFormatter<StringError>();
```