diff --git a/types/index.d.ts b/types/index.d.ts index fcb69520..37bddf2a 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,4 +1,4 @@ -import { FastifyPluginCallback } from 'fastify'; +import { FastifyPluginAsync } from 'fastify'; declare module "fastify" { @@ -17,7 +17,7 @@ declare module "fastify" { } } -type FastifyView = FastifyPluginCallback +type FastifyView = FastifyPluginAsync declare namespace fastifyView { export interface FastifyViewOptions {