import { auth } from "firebase-admin";
declare module 'fastify' {
export interface FastifyRequest {
user: auth.DecodedIdToken
}
}
You must export the modified interface thus merging the namespaced module definition for FastifyRequest.