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 */ /** Client's presence. Startup one if set before connecting */
presence: ClientPresence = new ClientPresence() presence: ClientPresence = new ClientPresence()
private _untypedOn = this.on // private _untypedOn = this.on
private _untypedEmit = this.emit // private _untypedEmit = this.emit
public on = <K extends string>(event: K, listener: ClientEvents[K]): this => // public on = <K extends string>(event: K, listener: ClientEvents[K]): this =>
this._untypedOn(event, listener) // this._untypedOn(event, listener)
public emit = <K extends string>( // public emit = <K extends string>(
event: K, // event: K,
...args: Parameters<ClientEvents[K]> // ...args: Parameters<ClientEvents[K]>
): boolean => this._untypedEmit(event, ...args) // ): boolean => this._untypedEmit(event, ...args)
constructor(options: ClientOptions = {}) { constructor(options: ClientOptions = {}) {
super() super()

View file

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