Skip to content

Commit cd55a18

Browse files
author
ufec
committed
fix: fastify-adapter register func sign
1 parent 220b098 commit cd55a18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
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)