Skip to content

Commit

Permalink
Merge pull request #130 from erictik/porxy-fetch
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
zcpua authored Jun 16, 2023
2 parents 8d4dcf9 + 46c4b92 commit 83509a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interfaces/config.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -16,7 +16,7 @@ export interface MJConfig {
DiscordBaseUrl: string;
WsBaseUrl: string;
fetch: FetchFn;
WebSocket: WebSocketFn;
WebSocket: WebSocketCl;
}
export interface MJConfigParam {
SalaiToken: string;
Expand All @@ -31,7 +31,7 @@ export interface MJConfigParam {
DiscordBaseUrl?: string;
WsBaseUrl?: string;
fetch?: FetchFn;
WebSocket?: WebSocketFn;
WebSocket?: WebSocketCl;
}

export const DefaultMJConfig: MJConfig = {
Expand Down

0 comments on commit 83509a2

Please sign in to comment.