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) => {