From 46c4b929c39d0ebac37581141f4b30f786f020cc Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 16 Jun 2023 20:03:39 +0800 Subject: [PATCH] fix --- src/interfaces/config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interfaces/config.ts b/src/interfaces/config.ts index b054977..cd073f0 100644 --- a/src/interfaces/config.ts +++ b/src/interfaces/config.ts @@ -1,7 +1,7 @@ import WebSocket from "isomorphic-ws"; export type FetchFn = typeof fetch; -export type WebSocketFn = typeof WebSocket; +export type WebSocketCl = typeof WebSocket; export interface MJConfig { ChannelId: string; @@ -16,7 +16,7 @@ export interface MJConfig { DiscordBaseUrl: string; WsBaseUrl: string; fetch: FetchFn; - WebSocket: WebSocketFn; + WebSocket: WebSocketCl; } export interface MJConfigParam { SalaiToken: string; @@ -31,7 +31,7 @@ export interface MJConfigParam { DiscordBaseUrl?: string; WsBaseUrl?: string; fetch?: FetchFn; - WebSocket?: WebSocketFn; + WebSocket?: WebSocketCl; } export const DefaultMJConfig: MJConfig = {