mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types: don't include dom types (#9831)
* types: don't include dom types * types: try to fix websocket imports
This commit is contained in:
7
packages/discord.js/typings/index.d.ts
vendored
7
packages/discord.js/typings/index.d.ts
vendored
@@ -1,6 +1,3 @@
|
||||
// DOM types required for undici
|
||||
/// <reference lib="dom" />
|
||||
|
||||
import {
|
||||
ActionRowBuilder as BuilderActionRow,
|
||||
MessageActionRowComponentBuilder,
|
||||
@@ -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,
|
||||
@@ -5898,7 +5895,7 @@ export type MessageChannelComponentCollectorOptions<T extends CollectedMessageIn
|
||||
>;
|
||||
|
||||
export interface MessageEvent {
|
||||
data: WebSocket.Data;
|
||||
data: WebSocketData;
|
||||
type: string;
|
||||
target: WebSocket;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user