Skip to content

Commit bc51d80

Browse files
Merge pull request #252 from richardeschloss/fix/types
Fix/types
2 parents 986af57 + 8456bb7 commit bc51d80

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/types.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { Module } from '@nuxt/types';
22
import * as SocketIOClient from 'socket.io-client';
3-
import { ManagerOptions } from 'socket.io-client/build/manager';
4-
import { Socket } from 'socket.io-client/build/socket';
53
import 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

277275
type Factory = (ioOpts: NuxtSocketOpts) => NuxtSocket;
278276

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)