We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3009353 + cd55a18 commit 900be19Copy full SHA for 900be19
packages/platform-fastify/adapters/fastify-adapter.ts
@@ -23,6 +23,7 @@ import {
23
FastifyLoggerInstance,
24
FastifyPluginAsync,
25
FastifyPluginCallback,
26
+ FastifyRegister,
27
FastifyReply,
28
FastifyRequest,
29
FastifyServerOptions,
@@ -368,7 +369,7 @@ export class FastifyAdapter<
368
369
return this.instance as unknown as T;
370
}
371
- public register<TRegister extends Parameters<TInstance['register']>>(
372
+ public register<TRegister extends Parameters<FastifyRegister<TInstance>>>(
373
plugin: TRegister['0'],
374
opts?: TRegister['1'],
375
) {
0 commit comments