Skip to content

Commit

Permalink
docs: Update readme keyof typo (#1330)
Browse files Browse the repository at this point in the history
Update: Use `.keyof` to create a `ZodEnum` schema from the keys of an object schema.
  • Loading branch information
ajhenry authored Sep 4, 2022
1 parent 9066b9e commit 0a2c9ab
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 @@ -799,7 +799,7 @@ Dog.shape.age; // => number schema

### `.keyof`

Use `.key` to create a `ZodEnum` schema from the keys of an object schema.
Use `.keyof` to create a `ZodEnum` schema from the keys of an object schema.

```ts
const keySchema = Dog.keyof();
Expand Down

0 comments on commit 0a2c9ab

Please sign in to comment.