10
tools/public_api_guard/forms/index.d.ts
vendored
10
tools/public_api_guard/forms/index.d.ts
vendored
@ -58,6 +58,10 @@ export declare abstract class AbstractControlDirective {
|
||||
valueChanges: Observable<any>;
|
||||
}
|
||||
|
||||
export interface AsyncValidatorFn {
|
||||
(c: AbstractControl): any;
|
||||
}
|
||||
|
||||
export declare class CheckboxControlValueAccessor implements ControlValueAccessor {
|
||||
onChange: (_: any) => void;
|
||||
onTouched: () => void;
|
||||
@ -327,6 +331,12 @@ export interface Validator {
|
||||
};
|
||||
}
|
||||
|
||||
export interface ValidatorFn {
|
||||
(c: AbstractControl): {
|
||||
[key: string]: any;
|
||||
};
|
||||
}
|
||||
|
||||
export declare class Validators {
|
||||
static compose(validators: ValidatorFn[]): ValidatorFn;
|
||||
static composeAsync(validators: AsyncValidatorFn[]): AsyncValidatorFn;
|
||||
|
Reference in New Issue
Block a user