Skip to content

Commit

Permalink
FIx index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kamektx committed Aug 26, 2021
1 parent 2eb03ae commit ed63f45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -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<Partial<ServerOptions>>
export const socketioServer: FastifyPluginAsync<Partial<FastifyServerOptions>>
export default socketioServer

0 comments on commit ed63f45

Please # to comment.