Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
fenok committed Jan 22, 2023
1 parent 6ef49a6 commit d6b8652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ const ROUTE = route("route", { state: { fromList: booleanType } });
All state fields are optional.
Since the state can contain any serializable value, we will likely need much more powerful types for it. The easiest way to create them is to use some third-party validation library. See [Yup type](#yup-type) for a Yup-based example.
Since the state can contain any serializable value, we will likely need much more powerful types for it. The easiest way to create them is to use some third-party validation library. See [Yup types](#yup-types) for a Yup-based example.
> ❗ Note that built-in types convert the given values to `string` (or `string[]`), which is not required in the case of the state. If that's something you care about, you'll need to create custom types.
Expand Down Expand Up @@ -678,7 +678,7 @@ This is a set of types that use [Yup](https://github.com/jquense/yup) for valida
- `yupType` stores values as `string` and can be used anywhere.
- `yupStringType` is similar to `yupType`, but it can only work with strings, and it doesn't add quotes upon serializing.
> ❗ We assume the use of Yup `1.0.0`
> ❗ We assume the use of Yup v1.0.0
```typescript jsx
import { Schema, InferType } from "yup";
Expand Down

0 comments on commit d6b8652

Please sign in to comment.