Added JSDoc

This commit is contained in:
Karel Krýda 2022-04-30 15:50:05 +02:00
parent 57368c8c6c
commit b4ffcc5555
4 changed files with 15 additions and 3 deletions

View file

@ -8,8 +8,9 @@ const { BeanModel } = require("redbean-node/dist/bean-model");
class Maintenance extends BeanModel {
/**
* Return a object that ready to parse to JSON for public
* Return an object that ready to parse to JSON for public
* Only show necessary data to public
* @returns {Object}
*/
async toPublicJSON() {
return {
@ -22,7 +23,8 @@ class Maintenance extends BeanModel {
}
/**
* Return a object that ready to parse to JSON
* Return an object that ready to parse to JSON
* @returns {Object}
*/
async toJSON() {
return {