From 3c1051639edfc0e52b2e44ec70170603b23d2f4b Mon Sep 17 00:00:00 2001 From: Deepjyoti Barman Date: Fri, 4 Oct 2024 14:56:58 +0530 Subject: [PATCH] Fix a typo about the Fastify framework name --- lib/build/framework/fastify/framework.d.ts | 4 ++-- lib/ts/framework/fastify/framework.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/build/framework/fastify/framework.d.ts b/lib/build/framework/fastify/framework.d.ts index f699fc2a2..074d5ebe3 100644 --- a/lib/build/framework/fastify/framework.d.ts +++ b/lib/build/framework/fastify/framework.d.ts @@ -45,9 +45,9 @@ export declare class FastifyResponse extends BaseResponse { export declare type SessionRequest = TRequest & { session?: SessionContainerInterface; }; -export interface FasitfyFramework extends Framework { +export interface FastifyFramework extends Framework { plugin: FastifyPluginCallback; errorHandler: () => (err: any, req: OriginalFastifyRequest, res: FastifyReply) => Promise; } export declare const errorHandler: () => (err: any, req: OriginalFastifyRequest, res: FastifyReply) => Promise; -export declare const FastifyWrapper: FasitfyFramework; +export declare const FastifyWrapper: FastifyFramework; diff --git a/lib/ts/framework/fastify/framework.ts b/lib/ts/framework/fastify/framework.ts index 51f2c25ef..99f9d1b84 100644 --- a/lib/ts/framework/fastify/framework.ts +++ b/lib/ts/framework/fastify/framework.ts @@ -185,7 +185,7 @@ export type SessionRequest (err: any, req: OriginalFastifyRequest, res: FastifyReply) => Promise; } @@ -200,7 +200,7 @@ export const errorHandler = () => { }; }; -export const FastifyWrapper: FasitfyFramework = { +export const FastifyWrapper: FastifyFramework = { plugin, errorHandler, wrapRequest: (unwrapped) => {