fix(jsdoc)

This commit is contained in:
DjDeveloperr 2020-12-03 10:35:29 +05:30
parent 4858bde6bc
commit a8935fc403
2 changed files with 18 additions and 9 deletions

11
mod.ts
View file

@ -1,8 +1,17 @@
export { default as EventEmitter } from 'https://deno.land/std@0.74.0/node/events.ts'
export { Base } from './src/structures/base.ts'
export { Gateway } from './src/gateway/index.ts'
export * from './src/models/client.ts'
export { RESTManager } from './src/models/rest.ts'
export * from './src/models/cacheAdapter.ts'
export * from './src/models/command.ts'
export {
Command,
CommandBuilder,
CommandCategory,
CommandsManager,
CategoriesManager
} from './src/models/command.ts'
export type { CommandContext } from './src/models/command.ts'
export {
Extension,
ExtensionCommands,

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()