File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import {IsNumberOptions} from "./ValidationTypeOptions";
5
5
import { ValidatorOptions } from "./ValidatorOptions" ;
6
6
import { ValidationExecutor } from "./ValidationExecutor" ;
7
7
import { ValidationOptions } from "../decorator/ValidationOptions" ;
8
- import * as validator from "validator" ;
9
8
10
9
/**
11
10
* Validator performs validation of the given object based on its metadata.
@@ -16,7 +15,7 @@ export class Validator {
16
15
// Private Properties
17
16
// -------------------------------------------------------------------------
18
17
19
- private validatorJs = validator ;
18
+ private validatorJs : ValidatorJS . ValidatorStatic = require ( " validator" ) ;
20
19
private libPhoneNumber = {
21
20
phoneUtil : require ( "google-libphonenumber" ) . PhoneNumberUtil . getInstance ( ) ,
22
21
} ;
You can’t perform that action at this time.
0 commit comments