@studyportals/sp-r2d2-interface
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -34,2 +34,3 @@ "use strict"; | ||
const obj = super.toJSON(); | ||
obj.__i_failed_result__ = this.__i_failed_result__; | ||
obj.errorMsg = this.errorMsg; | ||
@@ -36,0 +37,0 @@ return obj; |
@@ -14,2 +14,9 @@ import { ISuccessResult } from '../results-interfaces/i-success-result.interface'; | ||
constructor(); | ||
/** | ||
* Returns an object that can be stringifyed, resulting in the correct | ||
* serialization of the current instance. | ||
* | ||
* @see JSON.stringify | ||
*/ | ||
protected toJSON(): object; | ||
} |
@@ -17,3 +17,14 @@ "use strict"; | ||
} | ||
/** | ||
* Returns an object that can be stringifyed, resulting in the correct | ||
* serialization of the current instance. | ||
* | ||
* @see JSON.stringify | ||
*/ | ||
toJSON() { | ||
const obj = super.toJSON(); | ||
obj.__i_success_result__ = this.__i_success_result__; | ||
return obj; | ||
} | ||
} | ||
exports.SuccessResult = SuccessResult; |
{ | ||
"name": "@studyportals/sp-r2d2-interface", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Contains various types (DTOs) used when communicating between components to increase consistency.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8579
276