Skip to content

Commit

Permalink
update rejdme
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Mar 12, 2024
1 parent b47ef5b commit a15f124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { z } from "zod";

const personForm = formAtom({
name: textField(),
age: numberField({ schema: z.number().min(18) }); // override default schema
age: numberField({ schema: (s) => s.min(18) }); // extend the default schema
character: stringField().optional(); // make field optional
});

Expand Down

0 comments on commit a15f124

Please sign in to comment.