Skip to content

Commit

Permalink
Update README.md (#3949)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhr authored Jan 24, 2025
1 parent d724620 commit 6b96cfd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3006,13 +3006,15 @@ This more declarative API makes schema definitions vastly more concise.

### Runtypes

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

Good type inference support.
Runtypes is focused on ergonomics, with good type inference support.

- Supports "pattern matching": computed properties that distribute over unions
- Supports branded types
- Supports template literals
- Supports conformance to predefined static types
- Missing object methods: (deepPartial, merge)
- Missing nonempty arrays with proper typing (`[T, ...T[]]`)
- Missing promise schemas
- Missing error customization

Expand Down

0 comments on commit 6b96cfd

Please sign in to comment.