Skip to content

Commit

Permalink
docs: Remove Ajv configuration for TypeBox in TS examples (#4268)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbanugo committed Sep 13, 2022
1 parent 9bac49d commit 072ccd6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docs/Reference/TypeScript.md
Expand Up @@ -254,18 +254,6 @@ can do it as follows:
)
```

**Note** For Ajv version 7 and above is required to use the `ajvTypeBoxPlugin`:

```typescript
import Fastify from 'fastify'
import { ajvTypeBoxPlugin, TypeBoxTypeProvider } from '@fastify/type-provider-typebox'

const fastify = Fastify({
ajv: {
plugins: [ajvTypeBoxPlugin]
}
}).withTypeProvider<TypeBoxTypeProvider>()
```

#### Schemas in JSON Files

Expand Down

0 comments on commit 072ccd6

Please sign in to comment.