UNPKG
@alexisanzieu/passense
Version:
latest (2.9.6)
2.9.6
2.9.5
2.9.4
2.9.3
2.9.2
2.9.1
2.9.0
2.8.1
2.8.0
2.7.1
2.7.0
2.6.2
2.6.1
2.6.0
2.5.1
2.5.0
2.4.2
2.4.1
2.4.0
2.3.0
2.2.0
2.1.0
2.0.0
1.0.0
SOLID password to ensure robust security
github.com/alexissense/passense
alexissense/passense
@alexisanzieu/passense
/
src
/
validators
/
TypeValidator.ts
6 lines
•
214 B
text/typescript
View Raw
1
2
3
4
5
6
export
default
class
TypeValidator
{
public
static
isValid
(
password
:
string
):
boolean
{
if
(
typeof
password !==
'string'
)
throw
new
Error
(
"Type entered is not correct"
);
return
true
} }