typebox-v3

This commit is contained in:
sinclairzx81
2020-03-06 23:58:02 +13:00
parent 9e0349ef57
commit 136bb61ae8
+10
View File
@@ -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>