---
title: ValidPath
description: Returns the path if valid, otherwise the last possible valid path based on the given value.
contributors:
  - fabian-hiller
---

# ValidPath

Returns the path if valid, otherwise the last possible valid path based on the given value.

> This type is too complex to display. Please refer to the [source code](https://github.com/open-circle/valibot/blob/main/library/src/methods/forward/types.ts).
