File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11import { Module } from '@nuxt/types' ;
22import * as SocketIOClient from 'socket.io-client' ;
3- import { ManagerOptions } from 'socket.io-client/build/manager' ;
4- import { Socket } from 'socket.io-client/build/socket' ;
53import Vue from 'vue' ;
64
75/**
@@ -122,7 +120,7 @@ interface NuxtSocketIoServerOpts {
122120 port ?: number ;
123121}
124122
125- export interface NuxtSocketOpts extends Partial < ManagerOptions > {
123+ export interface NuxtSocketOpts extends Partial < SocketIOClient . ManagerOptions > {
126124 /** Name of the socket. If omitted, the default socket will be used. */
127125 name ?: string ;
128126 /**
@@ -272,7 +270,7 @@ interface NuxtSocketIoRuntimeOptions {
272270 info ?: boolean ;
273271}
274272
275- interface NuxtSocket extends Socket { } ;
273+ interface NuxtSocket extends SocketIOClient . Socket { } ;
276274
277275type Factory = ( ioOpts : NuxtSocketOpts ) => NuxtSocket ;
278276
Original file line number Diff line number Diff line change 11{
22 "name" : " nuxt-socket-io" ,
3- "version" : " 2.0.1 " ,
3+ "version" : " 2.0.2 " ,
44 "description" : " Socket.io client and server module for Nuxt. Just plug it in and GO" ,
55 "author" : " Richard Schloss" ,
66 "type" : " module" ,
You can’t perform that action at this time.
0 commit comments