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 {