Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fastify-adapter register func sign #10604 #10605

Merged
merged 1 commit into from Nov 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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>>>(
ufec marked this conversation as resolved.
Show resolved Hide resolved
plugin: TRegister['0'],
opts?: TRegister['1'],
) {
Expand Down