Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.

Commit

Permalink
refactor: use correct JSDoc syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
perzeuss committed Aug 20, 2020
1 parent 36d9466 commit eb3a557
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/commands/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Command {

/**
* Aliases for this command
* @type {string[], CommandoTranslatable}
* @type {string[] | CommandoTranslatable}
*/
this.aliases = info.aliases || [];
if(typeof info.autoAliases === 'undefined' || info.autoAliases) {
Expand Down Expand Up @@ -106,25 +106,25 @@ class Command {

/**
* Short description of the command
* @type {string, CommandoTranslatable}
* @type {string | CommandoTranslatable}
*/
this.description = info.description;

/**
* Usage format string of the command
* @type {string, CommandoTranslatable}
* @type {string | CommandoTranslatable}
*/
this.format = info.format || null;

/**
* Long description of the command
* @type {?string, ?CommandoTranslatable}
* @type {?string | ?CommandoTranslatable}
*/
this.details = info.details || null;

/**
* Example usage strings
* @type {?string[], ?CommandoTranslatable}
* @type {?string[] | ?CommandoTranslatable}
*/
this.examples = info.examples || null;

Expand Down
6 changes: 0 additions & 6 deletions src/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,9 @@ class CommandoTranslatable {
/**
* @typedef {Object} CommandoTranslatable - Represents a string which can be translated
* @property {string} key - The key which will be resolved.
* @function {string} key - Getter for the key
*/

constructor(key) {
/**
* The key to identify the translation string
* @type {string}
* @private
*/
this._key = key;
}

Expand Down

0 comments on commit eb3a557

Please sign in to comment.