diff --git a/README.md b/README.md index d7fca64..872df8d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/valibot/README.md b/src/valibot/README.md index 6b5bbc6..605cf25 100644 --- a/src/valibot/README.md +++ b/src/valibot/README.md @@ -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";