[js] fix jsdoc comments

This commit is contained in:
方而静 2024-02-11 14:56:48 +08:00
parent cdd6564b51
commit 1ff3a56ef3
Signed by: szTom
GPG Key ID: 072D999D60C6473C
2 changed files with 7 additions and 1 deletions

View File

@ -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.');
}

View File

@ -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]() {