feat(jsdoc): test fix for deno doc

This commit is contained in:
DjDeveloperr 2020-12-03 10:32:19 +05:30
parent 66dbd7889c
commit 4858bde6bc
2 changed files with 10 additions and 9 deletions

View file

@ -75,14 +75,14 @@ export class Client extends EventEmitter {
/** Client's presence. Startup one if set before connecting */
presence: ClientPresence = new ClientPresence()
private _untypedOn = this.on
private _untypedEmit = this.emit
public on = <K extends string>(event: K, listener: ClientEvents[K]): this =>
this._untypedOn(event, listener)
public emit = <K extends string>(
event: K,
...args: Parameters<ClientEvents[K]>
): boolean => this._untypedEmit(event, ...args)
// private _untypedOn = this.on
// private _untypedEmit = this.emit
// public on = <K extends string>(event: K, listener: ClientEvents[K]): this =>
// this._untypedOn(event, listener)
// public emit = <K extends string>(
// event: K,
// ...args: Parameters<ClientEvents[K]>
// ): boolean => this._untypedEmit(event, ...args)
constructor(options: ClientOptions = {}) {
super()

View file

@ -1 +1,2 @@
export const TOKEN = ''
export const WEBHOOK = ''