Skip to content

Commit

Permalink
chore(Typings): stricter def for Client#emit (discordjs#4087)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckiee authored Apr 16, 2020
1 parent d709656 commit 2388467
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ declare module 'discord.js' {
public on<K extends keyof ClientEvents>(event: K, listener: (...args: ClientEvents[K]) => void): this;

public once<K extends keyof ClientEvents>(event: K, listener: (...args: ClientEvents[K]) => void): this;

public emit<K extends keyof ClientEvents>(event: K, ...args: ClientEvents[K]): boolean;
}

export class ClientApplication extends Base {
Expand Down

0 comments on commit 2388467

Please sign in to comment.