From 0ed28b4597b06fc56449dd59e0999e9b797a98f8 Mon Sep 17 00:00:00 2001 From: Marcell Calero Date: Fri, 21 Sep 2018 18:44:59 -0300 Subject: [PATCH] Update validators.d.ts The ValidatorFn type is already defined, I guess it's better to use that --- src/validators.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/validators.d.ts b/src/validators.d.ts index e2d857a0a5e..f71dee2544d 100755 --- a/src/validators.d.ts +++ b/src/validators.d.ts @@ -113,7 +113,7 @@ export declare class Validators { * if the validation check fails, otherwise `null`. * */ - static required(control: AbstractControl): ValidationErrors | null; + static required: ValidatorFn; /** * @description * Validator that requires the control's value be true. This validator is commonly @@ -132,7 +132,7 @@ export declare class Validators { * @returns An error map that contains the `required` property * set to `true` if the validation check fails, otherwise `null`. */ - static requiredTrue(control: AbstractControl): ValidationErrors | null; + static requiredTrue: ValidatorFn; /** * @description * Validator that requires the control's value pass an email validation test. @@ -151,7 +151,7 @@ export declare class Validators { * if the validation check fails, otherwise `null`. * */ - static email(control: AbstractControl): ValidationErrors | null; + static email: ValidatorFn; /** * @description * Validator that requires the length of the control's value to be greater than or equal @@ -228,7 +228,7 @@ export declare class Validators { * @description * Validator that performs no operation. */ - static nullValidator(c: AbstractControl): ValidationErrors | null; + static nullValidator: ValidatorFn; /** * @description * Compose multiple validators into a single function that returns the union