Skip to content

Commit 9dbc954

Browse files
types: don't include dom types (#9831)
* types: don't include dom types * types: try to fix websocket imports
1 parent e68ab16 commit 9dbc954

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/discord.js/typings/index.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// DOM types required for undici
2-
/// <reference lib="dom" />
3-
41
import {
52
ActionRowBuilder as BuilderActionRow,
63
MessageActionRowComponentBuilder,
@@ -173,7 +170,7 @@ import { ChildProcess } from 'node:child_process';
173170
import { EventEmitter } from 'node:events';
174171
import { Stream } from 'node:stream';
175172
import { MessagePort, Worker } from 'node:worker_threads';
176-
import * as WebSocket from 'ws';
173+
import { Data as WebSocketData, WebSocket } from 'ws';
177174
import {
178175
RawActivityData,
179176
RawAnonymousGuildData,
@@ -5898,7 +5895,7 @@ export type MessageChannelComponentCollectorOptions<T extends CollectedMessageIn
58985895
>;
58995896

59005897
export interface MessageEvent {
5901-
data: WebSocket.Data;
5898+
data: WebSocketData;
59025899
type: string;
59035900
target: WebSocket;
59045901
}

0 commit comments

Comments
 (0)