Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add note in typescript doc to prevent ts(2349) warning 

fastify#4241
  • Loading branch information
mortifia committed Sep 1, 2022
1 parent 2fd9182 commit d96bafb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/Reference/TypeScript.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ in a blank http Fastify server.
*Note: Set `target` property in `tsconfig.json` to `es2017` or greater to avoid
[FastifyDeprecation](https://github.com/fastify/fastify/issues/3284) warning.*

*Note 2: Set `moduleResolution` property in `tsconfig.json` to `Node` to avoid
[ts(2349)](https://github.com/fastify/fastify/issues/4241) warning.*

4. Create an `index.ts` file - this will contain the server code
5. Add the following code block to your file:
```typescript
Expand Down

0 comments on commit d96bafb

Please sign in to comment.