hey does anyone think they could help with my nestjs exception filter? i'm trying to move to fastify but I can't get the reply typing right

#typescript #nestjs

import { ArgumentsHost, Catch, ExceptionFilter, HttpException, } from '@nestjs/common'; import { FastifyReply, FastifyRequest } from 'fastify'; @Catch(HttpException) export class MiniHttpExceptionFilter implements ExceptionFilter { catch(exception: HttpException, host: ArgumentsHost) { const ctx = host.switchToHttp(); const response = ctx.getResponse<FastifyReply>(); const status = exception.getStatus(); response.code(status).send({ error_message: exception.message, }); } }