fix: add jsdoc comments to models

This commit is contained in:
StevanFreeborn
2023-02-21 13:48:32 -06:00
committed by Stevan Freeborn
parent e97ee15387
commit 07ec44a0ad
17 changed files with 170 additions and 1 deletions
+12
View File
@@ -1,8 +1,20 @@
import { CreatedWithIdResponse } from './CreatedWithIdResponse.js';
/**
* @class SaveRecordResponse - Response from saving a record
*/
export class SaveRecordResponse extends CreatedWithIdResponse<number> {
/**
* @property {string[]} warnings - The warnings from saving the record.
*/
public warnings: string[];
/**
* @constructor - Creates a new instance of SaveRecordResponse.
* @param {number} id - The id of the record.
* @param {string[]} warnings - The warnings from saving the record.
* @returns {SaveRecordResponse} - A new instance of SaveRecordResponse.s
*/
constructor(id: number, warnings: string[] = []) {
super(id);
this.warnings = warnings;