diff --git a/types/simple-websocket/index.d.ts b/types/simple-websocket/index.d.ts index 5e79241ff1..fa4a5d492c 100644 --- a/types/simple-websocket/index.d.ts +++ b/types/simple-websocket/index.d.ts @@ -6,7 +6,7 @@ /// import { Duplex, DuplexOptions } from "stream"; -import WebSocket from "ws"; +import WebSocket = require("ws"); export interface SocketOptions extends DuplexOptions { /** websocket server url */ diff --git a/types/simple-websocket/server.d.ts b/types/simple-websocket/server.d.ts index b9694444f0..ec88a300ff 100644 --- a/types/simple-websocket/server.d.ts +++ b/types/simple-websocket/server.d.ts @@ -3,7 +3,7 @@ import { EventEmitter } from "events"; import * as http from "http"; import * as net from "net"; -import WebSocket from "ws"; +import WebSocket = require("ws"); import Socket from ".";