mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore(Typings): stricter def for Client#emit (#4087)
This commit is contained in:
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user