From 88dabfddbedbf979ab7f02775cc598dc0690c8e3 Mon Sep 17 00:00:00 2001 From: sinclair Date: Tue, 26 Nov 2024 14:28:07 +0900 Subject: [PATCH] Documentation --- readme.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/readme.md b/readme.md index ff9a4db9..4004ece9 100644 --- a/readme.md +++ b/readme.md @@ -1051,13 +1051,7 @@ const C = Parse(`{ x: number, y: number }`) // const C: TObject<{ // }> ``` - - - - -### Composition - -Syntax Types can be composed with standard Types. +Syntax Types can be composed with Standard Types. ```typescript const T = Type.Object({ // const T: TObject<{ @@ -1067,7 +1061,7 @@ const T = Type.Object({ // const T: TObject<{ }) // }> ``` -It is also possible to pass Standard Types to Syntax Types. +It is also possible to pass Standard Types to Syntax Types in the following way. ```typescript const X = Type.Number() @@ -1081,7 +1075,7 @@ const T = Parse({ X, Y, Z }, `{ }`) ``` -Module composition within Syntax Types is also supported +Syntax Types can also be used to parse Module types. ```typescript const Foo = Parse(`module Foo {