UNPKG

@alexisanzieu/passense

Version:

SOLID password to ensure robust security

11 lines (10 loc) 304 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class TypeValidator { static isValid(password) { if (typeof password !== 'string') throw new Error("Type entered is not correct"); return true; } } exports.default = TypeValidator;