Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update validators.d.ts #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/validators.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down