UNPKG

@alexisanzieu/passense

Version:

SOLID password to ensure robust security

6 lines 214 B
export default class TypeValidator { public static isValid(password: string): boolean { if (typeof password !== 'string') throw new Error("Type entered is not correct"); return true } }