using @fastify/helmet
together with an extended FastifyRequest
type leads to a type-error
#223
Closed
2 tasks done
Prerequisites
Fastify version
4.18.0
Plugin version
10.1.0
Node.js version
v18.15.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
13.4.1
Description
By using
@fastify/helmet
together with extending theFastifyRequest
type with custom attributes (as described here) we get the following TS error:Relates to #216 (comment)
Steps to Reproduce
It should be enough to use the TypeScript (
v4.9.5
) with the following files:index.ts
:tsconfig.json
:fastify.d.ts
:Expected Behavior
No response
The text was updated successfully, but these errors were encountered: