class PasswordStrength {
private zxcvbn: typeof zxcvbn;
- private relatedInputs: HTMLInputElement[];
- private staticDictionary: StaticDictionary;
+ private relatedInputs: HTMLInputElement[] = [];
+ private staticDictionary: StaticDictionary = [];
private feedbacker: zxcvbn.Feedback;
private wrapper: HTMLDivElement;
class PasswordStrength {
constructor(input, options) {
this.input = input;
+ this.relatedInputs = [];
+ this.staticDictionary = [];
this.score = document.createElement("span");
this.verdictResult = document.createElement("input");
void new Promise((resolve_1, reject_1) => { require(["zxcvbn"], resolve_1, reject_1); }).then(tslib_1.__importStar).then(({ default: zxcvbn }) => {