Skip to content

Commit 900be19

Browse files
Merge pull request #10605 from ufec/ufec-fix-10604-branch
fix: fastify-adapter register func sign #10604
2 parents 3009353 + cd55a18 commit 900be19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/platform-fastify/adapters/fastify-adapter.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
FastifyLoggerInstance,
2424
FastifyPluginAsync,
2525
FastifyPluginCallback,
26+
FastifyRegister,
2627
FastifyReply,
2728
FastifyRequest,
2829
FastifyServerOptions,
@@ -368,7 +369,7 @@ export class FastifyAdapter<
368369
return this.instance as unknown as T;
369370
}
370371

371-
public register<TRegister extends Parameters<TInstance['register']>>(
372+
public register<TRegister extends Parameters<FastifyRegister<TInstance>>>(
372373
plugin: TRegister['0'],
373374
opts?: TRegister['1'],
374375
) {

0 commit comments

Comments
 (0)