UNPKG

angular2

Version:

Angular 2 - a web framework for modern web apps

16 lines (15 loc) 990 B
import { ControlContainer } from './control_container'; import { NgControl } from './ng_control'; import { NgControlGroup } from './ng_control_group'; import { Control, ControlGroup } from '../model'; import { ControlValueAccessor } from './control_value_accessor'; import { ValidatorFn, AsyncValidatorFn } from './validators'; export declare function controlPath(name: string, parent: ControlContainer): string[]; export declare function setUpControl(control: Control, dir: NgControl): void; export declare function setUpControlGroup(control: ControlGroup, dir: NgControlGroup): void; export declare function composeValidators(validators: any[]): ValidatorFn; export declare function composeAsyncValidators(validators: any[]): AsyncValidatorFn; export declare function isPropertyUpdated(changes: { [key: string]: any; }, viewModel: any): boolean; export declare function selectValueAccessor(dir: NgControl, valueAccessors: ControlValueAccessor[]): ControlValueAccessor;