diff --git a/shared/error-utils/index.mjs b/shared/error-utils/index.mjs index 8a6f22f..3357e13 100644 --- a/shared/error-utils/index.mjs +++ b/shared/error-utils/index.mjs @@ -1,4 +1,10 @@ +/** + * Represents an error that is thrown when the calling a pure virtual method. + * @class + * @extends {Error} + */ export class VirtualMethodNotImplementedError extends Error { + /** @constructor */ constructor() { super('virtual method not implemented.'); } diff --git a/shared/utility/queue.mjs b/shared/utility/queue.mjs index 96a9d08..9ff8574 100644 --- a/shared/utility/queue.mjs +++ b/shared/utility/queue.mjs @@ -102,7 +102,7 @@ export class Queue { /** * Returns an iterator that allows iterating through the elements of the queue. - * @returns {*} elements of the queue. + * @yields {*} elements of the queue. * @generator */ *[Symbol.iterator]() {