Skip to content

Commit

Permalink
docs: document new extended types
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallswain committed Apr 12, 2023
1 parent 376e890 commit 739ec49
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/api/schema/typebox.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 739ec49

Please sign in to comment.