Skip to content

Commit

Permalink
fix: fastify-adapter register func sign
Browse files Browse the repository at this point in the history
  • Loading branch information
ufec committed Nov 26, 2022
1 parent 220b098 commit cd55a18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/platform-fastify/adapters/fastify-adapter.ts
Original file line number Diff line number Diff line change
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 cd55a18

Please sign in to comment.