Skip to content

Commit

Permalink
Merge pull request #10605 from ufec/ufec-fix-10604-branch
Browse files Browse the repository at this point in the history
fix: fastify-adapter register func sign #10604
  • Loading branch information
kamilmysliwiec committed Nov 29, 2022
2 parents 3009353 + cd55a18 commit 900be19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/platform-fastify/adapters/fastify-adapter.ts
Expand Up @@ -23,6 +23,7 @@ import {
FastifyLoggerInstance,
FastifyPluginAsync,
FastifyPluginCallback,
FastifyRegister,
FastifyReply,
FastifyRequest,
FastifyServerOptions,
Expand Down Expand Up @@ -368,7 +369,7 @@ export class FastifyAdapter<
return this.instance as unknown as T;
}

public register<TRegister extends Parameters<TInstance['register']>>(
public register<TRegister extends Parameters<FastifyRegister<TInstance>>>(
plugin: TRegister['0'],
opts?: TRegister['1'],
) {
Expand Down

0 comments on commit 900be19

Please sign in to comment.