Skip to content

Commit

Permalink
docs: update comparison with runtypes (#2536)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhr committed Jul 31, 2023
1 parent 81a89f5 commit 78a4090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2789,7 +2789,7 @@ This more declarative API makes schema definitions vastly more concise.

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

Good type inference support, but limited options for object type masking (no `.pick` , `.omit` , `.extend` , etc.). No support for `Record` s (their `Record` is equivalent to Zod's `object` ). They DO support readonly types, which Zod does not.
Good type inference support. They DO support readonly types, which Zod does not.

- Supports "pattern matching": computed properties that distribute over unions
- Supports readonly types
Expand Down

0 comments on commit 78a4090

Please sign in to comment.