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

# set

## Summary

Create a schema that validates a Set with typed values.

## Signature

```ts
function set<valueInput, valueOutput>(
  valueSchema: Schema<valueInput, valueOutput>,
): Schema<unknown, Set<valueOutput>>

```

## Parameters

### `valueSchema`

Schema for Set values

## Returns

A schema that produces a `Set<valueOutput>`