Skip to content

Commit c638bf7

Browse files
Tony133jmcdo29
andauthored
Update content/techniques/performance.md
Co-authored-by: Jay McDoniel <[email protected]>
1 parent 11026b8 commit c638bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ new FastifyAdapter({ logger: true });
7979

8080
Middleware functions (when `@nestjs/platform-fastify` is used) retrieve the raw `req` and `res` objects instead of Fastify's wrappers. This is how the `middie` package works (that's used under the hood) and `fastify` - check out this [page(https://www.fastify.io/docs/latest/Reference/Middleware/) for more information,
8181

82-
> warning **Warning** The middleware in `fastify` has an IncomingMessage request type `FastifyRequest['raw']` and a ServerResponse type `FastifyReply['raw']`.
82+
> warning **Warning** When using `fastify` as the HTTP engine the request parameter of middleware has a type of `FastifyRequest['raw']` and the response parameter has a type `FastifyReply['raw']`.
8383
8484
```typescript
8585
@@filename(logger.middleware)

0 commit comments

Comments
 (0)