@thangk/easythemer
Version:
Easily generate shades from a colour palette for use in your app
23 lines (22 loc) • 748 B
TypeScript
/**
* @param {T} object1
* @param {T} object2
* @getters getResult(), hasErrors(), getErrorsList()
* @result boolean
* @description
* This class is used to validate if two objects have the same properties by checking if they object with the most properties has all the properties of the object with the least properties.
*/
export default class ValidateSameObjectType<T extends Object> {
private result;
private errors;
private errmsg;
constructor(object1: T, object2: T);
get getResult(): boolean;
get hasErrors(): boolean;
get getErrorsList(): string[];
private showErrors;
private addError;
private setErrorState;
private haveCommonProperties;
private getMinLenObj;
}