Skip to content

Commit

Permalink
Docs Fix: Zod examples should use zod not yup (#4188)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-dickinson committed Mar 14, 2023
1 parent 03402c6 commit e579042
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/src/pages/guide/composition-api/typed-schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ This makes the form values and submitted values typed automatically and caters f

```ts
import { useForm } from 'vee-validate';
import { object, string } from 'yup';
import { toTypedSchema } from '@vee-validate/yup';
import { object, number } from "zod";
import { toTypedSchema } from '@vee-validate/zod';

const { values, handleSubmit } = useForm({
validationSchema: toTypedSchema(
Expand Down Expand Up @@ -229,8 +229,8 @@ You can also define default values on your zod schema directly and it will be pi

```ts
import { useForm } from 'vee-validate';
import { object, string } from 'yup';
import { toTypedSchema } from '@vee-validate/yup';
import { object, string } from 'zod';
import { toTypedSchema } from '@vee-validate/zod';

const { values, handleSubmit } = useForm({
validationSchema: toTypedSchema(
Expand All @@ -250,8 +250,8 @@ You can also define preprocessors to cast your fields before submission:

```ts
import { useForm } from 'vee-validate';
import { object, number, preprocess } from 'yup';
import { toTypedSchema } from '@vee-validate/yup';
import { object, number, preprocess } from 'zod';
import { toTypedSchema } from '@vee-validate/zod';

const { values, handleSubmit } = useForm({
validationSchema: toTypedSchema(
Expand Down

0 comments on commit e579042

Please sign in to comment.