Properly marked exported classes to fix JSDoc

This commit is contained in:
rainbow napkin 2025-09-02 07:32:51 -04:00
parent 7d31cc9e8a
commit 514b00a714
67 changed files with 23032 additions and 29404 deletions

View file

@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
/**
* Object representing a piece of media
*/
module.exports = class{
class media{
/**
* Creates a new media object from scraped information
* @param {String} title - Chosen title of media
@ -37,4 +37,6 @@ module.exports = class{
this.duration = duration;
this.rawLink = rawLink;
}
}
}
module.exports = media;

View file

@ -27,7 +27,7 @@ const { userModel } = require('../../../schemas/user/userSchema');
/**
* Class containing playlist management logic for a single channel
*/
module.exports = class{
class playlistHandler{
/**
* Instantiates a new object to handle playlist management for a single channel
* @param {channelManager} server - Parent server object
@ -1134,4 +1134,6 @@ module.exports = class{
return loggerUtils.socketExceptionHandler(socket, err);
}
}
}
}
module.exports = playlistHandler;

View file

@ -26,7 +26,7 @@ const channelModel = require('../../../schemas/channel/channelSchema');
/**
* Object represneting a single channel's media queue
*/
module.exports = class{
class queue{
/**
* Instantiates a new media queue for a given channel
* @param {channelManager} server - Parent server object
@ -1749,4 +1749,6 @@ module.exports = class{
loggerUtils.localExceptionHandler(err);
}
}
}
}
module.exports = queue;

View file

@ -21,7 +21,7 @@ const media = require('./media');
* Class extending media which represents a queued piece of media
* @extends media
*/
module.exports = class extends media{
class queuedMedia extends media{
/**
* Creates a new queued media object
* @param {Number} startTime - JS Epoch representing start time
@ -119,4 +119,6 @@ module.exports = class extends media{
return this.startTime + (this.earlyEnd * 1000);
}
}
}
}
module.exports = queuedMedia;