types: don't include dom types (#9831)

* types: don't include dom types

* types: try to fix websocket imports
This commit is contained in:
Superchupu
2023-09-11 20:59:36 +01:00
committed by GitHub
parent e68ab167c2
commit 9dbc9542c4

View File

@@ -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;
}