fix: add jsdoc comments to models
This commit is contained in:
committed by
Stevan Freeborn
parent
e97ee15387
commit
07ec44a0ad
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user