diff --git a/lib/ts/framework/fastify/framework.ts b/lib/ts/framework/fastify/framework.ts index 428304a33..51f2c25ef 100644 --- a/lib/ts/framework/fastify/framework.ts +++ b/lib/ts/framework/fastify/framework.ts @@ -164,7 +164,7 @@ export class FastifyResponse extends BaseResponse { }; } -function plugin(fastify: FastifyInstance, _: any, done: Function) { +function plugin(fastify: FastifyInstance, _: unknown, done: () => void) { fastify.addHook("preHandler", async (req: OriginalFastifyRequest, reply: FastifyReply) => { let supertokens = SuperTokens.getInstanceOrThrowError(); let request = new FastifyRequest(req);