Skip to content

Commit

Permalink
docs: remove obsolete text about readonly types (#2676)
Browse files Browse the repository at this point in the history
Readonly types were introduced in Zod v3.22.0:
https://github.com/colinhacks/zod/releases/tag/v3.22.0
  • Loading branch information
mtsknn authored Aug 23, 2023
1 parent 1e23990 commit 9bd3879
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2825,10 +2825,9 @@ This more declarative API makes schema definitions vastly more concise.

[https://github.com/pelotom/runtypes](https://github.com/pelotom/runtypes)

Good type inference support. They DO support readonly types, which Zod does not.
Good type inference support.

- Supports "pattern matching": computed properties that distribute over unions
- Supports readonly types
- Missing object methods: (deepPartial, merge)
- Missing nonempty arrays with proper typing (`[T, ...T[]]`)
- Missing promise schemas
Expand Down

0 comments on commit 9bd3879

Please # to comment.