Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,7 @@ That's it! Conformal automatically handles FormData parsing, type coercion, and
- **[`serialize`](src/README.md#serialize)** - Transform typed values back to form-compatible strings
- **[`getPath`](src/README.md#getpath)** - Safely access nested values using dot/bracket notation
- **[`setPath`](src/README.md#setpath)** - Immutably set nested values using dot/bracket notation

### Coerce Functions

- **[`coerceString`](src/README.md#coercestring)** - String handling
- **[`coerceFile`](src/README.md#coercefile)** - File handling
- **[`coerceNumber`](src/README.md#coercenumber)** - String to number coercion
- **[`coerceBigint`](src/README.md#coercebigint)** - String to BigInt coercion
- **[`coerceBoolean`](src/README.md#coerceboolean)** - String to boolean coercion
- **[`coerceDate`](src/README.md#coercedate)** - String to Date coercion
- **[`coerceArray`](src/README.md#coercearray)** - Coerce to array
- **[`coerceX`](src/README.md#coerce-functions)** - A set of coercion functions for building custom schemas

### Types

Expand Down
2 changes: 1 addition & 1 deletion src/valibot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Valibot Utilities are provided under the `conformal/valibot` subpath. Valibo

## Field Schemas

Conformal's field schemas are preprocessing wrappers that handle common form input patterns automatically. They convert empty strings to `undefined`, coerce string inputs to appropriate types (numbers, dates, booleans), and handle `File` objects. They're fully compatible with Valibot and can be mixed with regular Valibot schemas.
These field schemas are preprocessing wrappers that handle common form input patterns automatically by using conformal's set of coerce functions internally. They convert empty strings to `undefined`, coerce string inputs to appropriate types (numbers, dates, booleans), and handle `File` objects. They're fully compatible with Valibot and can be mixed with regular Valibot schemas.

```typescript
import * as vf from "conformal/valibot";
Expand Down