diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..1d92d2c --- /dev/null +++ b/index.d.ts @@ -0,0 +1,8 @@ +import { Duplex } from "stream"; +import WebSocket from 'ws'; + +declare class WebSocketJSONStream extends Duplex { + constructor(ws: WebSocket); +} + +export default WebSocketJSONStream;