---
title: isValiError
description: A type guard to check if an error is a ValiError.
source: /utils/isValiError/isValiError.ts
contributors:
  - fabian-hiller
---

import { Property } from '~/components';
import { properties } from './properties';

# isValiError

A type guard to check if an error is a ValiError.

```ts
const result = v.isValiError<TSchema>(error);
```

## Generics

- `TSchema` <Property {...properties.TSchema} />

## Parameters

- `error` <Property {...properties.error} />

## Returns

- `result` <Property {...properties.result} />
