test(forms): add test for multi-select and custom accessors (#9624)

This commit is contained in:
Kara
2016-06-30 18:04:00 -07:00
committed by GitHub
parent 119794249b
commit 695c08b9dd
4 changed files with 30 additions and 1 deletions

View File

@ -376,6 +376,17 @@ export declare class SelectControlValueAccessor implements ControlValueAccessor
writeValue(value: any): void;
}
/** @experimental */
export declare class SelectMultipleControlValueAccessor implements ControlValueAccessor {
onChange: (_: any) => void;
onTouched: () => void;
value: any;
constructor();
registerOnChange(fn: (value: any) => any): void;
registerOnTouched(fn: () => any): void;
writeValue(value: any): void;
}
/** @experimental */
export interface Validator {
validate(c: AbstractControl): {