Skip to content

Commit

Permalink
docs(website): fixed missing zod import (#57)
Browse files Browse the repository at this point in the history
Fixed a minor typo in the docs. Zod library should be imported, because
the schema that is being defined in this example uses validators that
are from it.
  • Loading branch information
JsSusenka authored Jan 28, 2024
1 parent 2cd74ed commit 8e68d4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/docs/usage-with-forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ In this example, we will use [zod-form-data](https://www.npmjs.com/package/zod-f
"use server";

import { action } from "@/lib/safe-action";
import { z } from "zod";
import { zfd } from "zod-form-data";

const schema = zfd.formData({
Expand Down

0 comments on commit 8e68d4c

Please sign in to comment.