diff --git a/index.d.ts b/index.d.ts index 70a5d8c..f7bd88a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,11 +1,11 @@ -import { FastifyPlugin } from 'fastify' -import { ServerOptions } from 'socket.io' +import { FastifyPluginAsync, FastifyServerOptions } from 'fastify' +import * as SocketIO from 'socket.io' declare module 'fastify' { - export interface FastifyInstance { + interface FastifyInstance { io: SocketIO.Server } } -declare const socketioServer: FastifyPlugin> +export const socketioServer: FastifyPluginAsync> export default socketioServer