docs: document new extended types (#3160)

This commit is contained in:
Marshall Thompson 2023-04-28 10:20:50 -06:00 committed by GitHub
parent aee8531b5f
commit 06919cf024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1670,6 +1670,45 @@ const T = {
}
```
#### Symbol
Verifies that the value is of type `Symbol`. Requires [Extended Ajv Configuration](#extended-configuration).
```js
const T = Type.Symbol()
```
```js
type T = symbol
```
```js
const T = {
type: 'null',
typeOf: 'Symbol'
}
```
#### BigInt
Verifies that the value is of type `BigInt`. Requires [Extended Ajv Configuration](#extended-configuration).
```js
const T = Type.BigInt()
```
```js
type T = bigint
```
```js
const T = {
type: 'null',
typeOf: 'BigInt'
}
```
#### Void
Verifies that the value is `null`. Requires [Extended Ajv Configuration](#extended-configuration).