---
title: "parse"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/data-schema/src/lib/schema.ts#L1183"
---

# parse

## Summary

Validate a value and return the typed output or throw a [`ValidationError`](/data-schema/class/ValidationError/).

## Signature

```ts
function parse<input, output>(
  schema: StandardSchemaV1<input, output>,
  value: unknown,
  options: ParseOptions,
): output

```

## Parameters

### `schema`

The schema to validate against

### `value`

The value to validate

### `options`

Validation options

## Returns

The validated output value