From 9bd3879b482f139fd03d5025813ee66a04195cdd Mon Sep 17 00:00:00 2001 From: Matias Kinnunen Date: Thu, 24 Aug 2023 01:41:24 +0300 Subject: [PATCH] docs: remove obsolete text about readonly types (#2676) Readonly types were introduced in Zod v3.22.0: https://github.com/colinhacks/zod/releases/tag/v3.22.0 --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 5649249ec..938df6ba6 100644 --- a/README.md +++ b/README.md @@ -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