idea-toolbox
Advanced tools
Comparing version 6.6.4 to 6.6.5
@@ -20,3 +20,3 @@ import { isEmptyFieldTypes } from './utils'; | ||
*/ | ||
constructor(newData?: {}, options?: {}); | ||
constructor(newData?: any, options?: any); | ||
/** | ||
@@ -37,3 +37,3 @@ * Load the attributes from an already existing resource. | ||
*/ | ||
load(newData: any, options?: {}): void; | ||
load(newData: any, options?: any): void; | ||
/** | ||
@@ -58,3 +58,3 @@ * Load the attributes from an already existing resource and then force some attributes to assume _safeData_ values. | ||
*/ | ||
safeLoad(newData: any, safeData: any, options?: {}): void; | ||
safeLoad(newData: any, safeData: any, options?: any): void; | ||
/** | ||
@@ -73,3 +73,3 @@ * Valide the object's attributes, performing all the checkings. | ||
*/ | ||
validate(options?: {}): string[]; | ||
validate(options?: any): string[]; | ||
/** | ||
@@ -76,0 +76,0 @@ * Shortcut to Utils.isEmpty to check the emptiness of a field. |
@@ -23,3 +23,5 @@ "use strict"; | ||
*/ | ||
constructor(newData = {}, options = {}) { | ||
constructor(newData, options) { | ||
newData = newData ?? {}; | ||
options = options ?? {}; | ||
this.load(newData, options); | ||
@@ -42,5 +44,6 @@ } | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
load(newData, options = {}) { | ||
load(newData, options) { | ||
newData = newData ?? {}; | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
options = options ?? {}; | ||
} | ||
@@ -66,5 +69,6 @@ /** | ||
*/ | ||
safeLoad(newData, safeData, options = {}) { | ||
safeLoad(newData, safeData, options) { | ||
newData = newData ?? {}; | ||
safeData = safeData ?? {}; | ||
options = options ?? {}; | ||
this.load(newData, options); | ||
@@ -85,4 +89,5 @@ } | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
validate(options = {}) { | ||
validate(options) { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
options = options || {}; | ||
return []; | ||
@@ -89,0 +94,0 @@ } |
{ | ||
"name": "idea-toolbox", | ||
"version": "6.6.4", | ||
"version": "6.6.5", | ||
"description": "IDEA's utility functions", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
241867
7132