From 49cf97a8823d24f2481a29fec2cfe610ed10741e Mon Sep 17 00:00:00 2001 From: ryo-ma Date: Sun, 20 Sep 2020 19:25:02 +0900 Subject: [PATCH] Support stricter type --- deps.ts | 5 ++++- mod.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/deps.ts b/deps.ts index 0a7c453..86ea7f2 100644 --- a/deps.ts +++ b/deps.ts @@ -6,5 +6,8 @@ export { isWebSocketPingEvent, isWebSocketPongEvent, connectWebSocket, - WebSocket, } from "https://deno.land/std@0.65.0/ws/mod.ts"; + +export type { + WebSocket, +} from "https://deno.land/std@0.65.0/ws/mod.ts"; \ No newline at end of file diff --git a/mod.ts b/mod.ts index 194981f..59fcb81 100644 --- a/mod.ts +++ b/mod.ts @@ -1,2 +1,2 @@ -export { WebSocketServer, WebSocket, WebSocketState } from "./lib/websocket.ts"; -export { WebSocketError } from "./lib/errors.ts"; \ No newline at end of file +export type { WebSocketServer, WebSocket, WebSocketState } from "./lib/websocket.ts"; +export type { WebSocketError } from "./lib/errors.ts"; \ No newline at end of file