We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 359cfa3 commit d009053Copy full SHA for d009053
README.md
@@ -249,8 +249,8 @@ type Thing = t.ExtractType<typeof ThingValidator>
249
```
250
251
The type of `Thing` will be `{ name: string, comment?: string }`. Note that the property types in the explicit type parameter
252
-(`any`) are ignored. The type parameter just indicates which
253
-properties are required and which are optional.
+(`any`) are ignored. The type parameter just indicates which properties are required and which are optional, and also allows
+you to mark properties readonly. These attributes will be reflected in `t.ExtractType`.
254
255
You can also use the `t.optionalNullOr(t.string())` as a shorthand for
256
`t.optional(t.nullOr(t.string()))`.
0 commit comments