Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
types: don't include dom types (#9831)
* types: don't include dom types

* types: try to fix websocket imports
  • Loading branch information
SuperchupuDev committed Sep 11, 2023
1 parent e68ab16 commit 9dbc954
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/discord.js/typings/index.d.ts
@@ -1,6 +1,3 @@
// DOM types required for undici
/// <reference lib="dom" />

import {
ActionRowBuilder as BuilderActionRow,
MessageActionRowComponentBuilder,
Expand Down Expand Up @@ -173,7 +170,7 @@ import { ChildProcess } from 'node:child_process';
import { EventEmitter } from 'node:events';
import { Stream } from 'node:stream';
import { MessagePort, Worker } from 'node:worker_threads';
import * as WebSocket from 'ws';
import { Data as WebSocketData, WebSocket } from 'ws';
import {
RawActivityData,
RawAnonymousGuildData,
Expand Down Expand Up @@ -5898,7 +5895,7 @@ export type MessageChannelComponentCollectorOptions<T extends CollectedMessageIn
>;

export interface MessageEvent {
data: WebSocket.Data;
data: WebSocketData;
type: string;
target: WebSocket;
}
Expand Down

0 comments on commit 9dbc954

Please sign in to comment.