# isValiError

> This document is the Markdown version of [valibot.dev/api/isValiError/](https://valibot.dev/api/isValiError/). For the complete documentation index, see [llms.txt](https://valibot.dev/llms.txt).

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

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

## Generics

- `TSchema` `extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>`

## Parameters

- `error` `unknown`

## Returns

- `result` `boolean`
