Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm committed Sep 17, 2024
1 parent 65c12f1 commit 67f0e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/types/types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ fastify.register(rawBodyPlugin, options4)
fastify.register(rawBodyPlugin, options5)

fastify.get('/', { config: { rawBody: true } }, (request, reply) => {
expectType<true>(request.routeConfig.rawBody)
expectType<any>(request.rawBody)
return "rawBody enabled"
})

0 comments on commit 67f0e33

Please sign in to comment.