From 91c48938d9f2202c17a6fa26ea648ca603f0646d Mon Sep 17 00:00:00 2001 From: Radu <41273661+lsg-radu@users.noreply.github.com> Date: Fri, 10 Aug 2018 13:50:00 +1200 Subject: [PATCH] Update readme.md --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 8c34969..a22a29f 100644 --- a/readme.md +++ b/readme.md @@ -65,9 +65,9 @@ String | `const T = Type.String()` | `ty Boolean | `const T = Type.Boolean()` | `type T = boolean` | Object | `const T = Type.Object({ name: Type.String() })` | `type T = {name: string}` | Array | `const T = Type.Array(Type.Object({ name: Type.String() }))` | `type T = {name: string}[]` | -Enum | `const T = Type.Enum("yes", "no")` | `type T = "yes" | "no"` | +Enum | `const T = Type.Enum("yes", "no")` | `type T = "yes" \| "no"` | Tuple | `const T = Type.Tuple(Type.String(), Type.Number())` | `type T = [string, number]` | -Union | `const T = Type.Union(Type.String(), Type.Number())` | `type T = string | number` | +Union | `const T = Type.Union(Type.String(), Type.Number())` | `type T = string \| number` | Intersect | `const T = Type.Intersect(Type.String(), Type.Number())` | `type T = string & number` | Literal | `const T = Type.Literal("click")` | `type T = "click"` | Pattern | `const T = Type.Pattern(/foo/)` | `type T = string` |