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

# object

## Summary

Creates a Standard Schema-compatible schema that reads typed values from a `FormData` or
`URLSearchParams` object.

Use the returned schema with `parse()` or `parseSafe()` from `@remix-run/data-schema`.

## Signature

```ts
function object<schema extends FormDataSchema>(schema: schema): FormDataObjectSchema<schema>

```

## Returns

A schema that validates a `FormData` or `URLSearchParams` object and produces typed
output.