mirror of
https://github.com/zoriya/typebox.git
synced 2026-05-22 23:05:02 +00:00
typebox-v3
This commit is contained in:
@@ -132,6 +132,11 @@ TypeBox provides many functions generate JSONschema data types. The following ta
|
||||
<td><code>const T = Type.Number()</code></td>
|
||||
<td><code>type T = number</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Integer</td>
|
||||
<td><code>const T = Type.Integer()</code></td>
|
||||
<td><code>type T = number</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Boolean</td>
|
||||
<td><code>const T = Type.Boolean()</code></td>
|
||||
@@ -221,6 +226,11 @@ TypeBox provides many functions generate JSONschema data types. The following ta
|
||||
<td><code>const T = Type.Number()</code></td>
|
||||
<td><code>{ type: 'number' }</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Integer</td>
|
||||
<td><code>const T = Type.Number()</code></td>
|
||||
<td><code>{ type: 'integer' }</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Boolean</td>
|
||||
<td><code>const T = Type.Boolean()</code></td>
|
||||
|
||||
Reference in New Issue
Block a user