Skip to content

Commit

Permalink
fix: declare id,description
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Jun 3, 2024
1 parent 9ab091b commit 430968a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions src/base-object.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,16 @@ export class BaseObject {
return {};
}

/** @type {string} */ id;
/** @type {string} */ description;

/**
* Creates an instance of BaseObject.
* @param {Object} [options]
* @param {string} [options.id]
* @param {string} [options.description]
* @param {Object} [additionalProperties]
*/
* Creates an instance of BaseObject.
* @param {Object} [options]
* @param {string} [options.id]
* @param {string} [options.description]
* @param {Object} [additionalProperties]
*/
constructor(options, additionalProperties) {
this.updateAttributes(options, additionalProperties);
}
Expand Down
2 changes: 1 addition & 1 deletion src/named-object.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class NamedObject extends BaseObject {
});
}

#name;
/** @type {string} */ #name;

get name() {
return this.#name;
Expand Down

0 comments on commit 430968a

Please sign in to comment.