Skip to content

Commit

Permalink
chore: use FastifyPluginAsync in types (fastify#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Feb 19, 2024
1 parent 616f0f9 commit fbe3430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FastifyPluginCallback } from 'fastify';
import { FastifyPluginAsync } from 'fastify';

declare module "fastify" {

Expand All @@ -17,7 +17,7 @@ declare module "fastify" {
}
}

type FastifyView = FastifyPluginCallback<fastifyView.FastifyViewOptions>
type FastifyView = FastifyPluginAsync<fastifyView.FastifyViewOptions>

declare namespace fastifyView {
export interface FastifyViewOptions {
Expand Down

0 comments on commit fbe3430

Please sign in to comment.