You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: design/website/docs/script/overview.md
+27-10Lines changed: 27 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,14 @@ A TypeScript Engine for JavaScript
4
4
5
5
## Overview
6
6
7
-
TypeBox is a runtime type system that uses Json Schema as an AST for runtime type representation. The Script function provides a syntactic frontend to the type system and allows Json Schema to be created using native TypeScript syntax. TypeBox provides full static and runtime type safety for string-encoded types.
7
+
TypeBox is a type system designed to use Json Schema as an AST for runtime type representation. The Script function provides a full syntactic frontend to the type system and enables Json Schema to be constructed using native TypeScript syntax. TypeBox provides full static and runtime type safety for string-encoded types.
8
8
9
9
### Example
10
10
11
-
The following uses the Script function to create and transform Json Schema types.
11
+
The following uses Script to construct and map Json Schema.
Copy file name to clipboardExpand all lines: docs/docs/script/overview.html
+27-10Lines changed: 27 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
<h1>Script</h1>
2
2
<p>A TypeScript Engine for JavaScript</p>
3
3
<h2>Overview</h2>
4
-
<p>TypeBox is a runtime type system that uses Json Schema as an AST for runtime type representation. The Script function provides a syntactic frontend to the type system and allows Json Schema to be created using native TypeScript syntax. TypeBox provides full static and runtime type safety for string-encoded types.</p>
4
+
<p>TypeBox is a type system designed to use Json Schema as an AST for runtime type representation. The Script function provides a full syntactic frontend to the type system and enables Json Schema to be constructed using native TypeScript syntax. TypeBox provides full static and runtime type safety for string-encoded types.</p>
5
5
<h3>Example</h3>
6
-
<p>The following uses the Script function to create and transform Json Schema types.</p>
7
-
<pre><codeclass="language-typescript">import Type from 'typebox'
6
+
<p>The following uses Script to construct and map Json Schema.</p>
7
+
<pre><codeclass="language-typescript">import Type, { type Static } from 'typebox'
TypeBox is a runtime type system that uses Json Schema as an AST for runtime type representation. The Script function provides a syntactic frontend to the type system and allows Json Schema to be created using native TypeScript syntax. TypeBox provides full static and runtime type safety for string-encoded types.
115
+
TypeBox is a type system designed to use Json Schema as an AST for runtime type representation. The Script function provides a full syntactic frontend to the type system and enables Json Schema to be constructed using native TypeScript syntax. TypeBox provides full static and runtime type safety for string-encoded types.
116
116
117
117
### Example
118
118
119
-
The following uses Script to create and map types.
119
+
The following uses Script to construct and map Json Schema.
0 commit comments