Skip to content

Commit

Permalink
revert: add types to EventEmitter static methods
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Sep 20, 2022
1 parent f049734 commit cc90b40
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,6 @@ import {
RawWidgetMemberData,
} from './rawDataTypes';

declare module 'node:events' {
class EventEmitter {
// Add type overloads for client events.
public static once<K extends keyof ClientEvents>(eventEmitter: Client, eventName: K): Promise<ClientEvents[K]>;
public static on<K extends keyof ClientEvents>(
eventEmitter: Client,
eventName: K,
): AsyncIterableIterator<ClientEvents[K]>;
}
}

//#region Classes

export class Activity {
Expand Down

0 comments on commit cc90b40

Please sign in to comment.