Add asyncValidators. Added in 6.18.0.

This commit is contained in:
Scott Hatcher
2015-07-14 10:45:53 -07:00
parent 2f073bda43
commit 5f6361e360
+12 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for angular-formly 6.17.0
// Type definitions for angular-formly 6.18.0
// Project: https://github.com/formly-js/angular-formly
// Definitions by: Scott Hatcher <https://github.com/scatcher>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -130,6 +130,17 @@ declare module AngularFormly {
// see http://docs.angular-formly.com/docs/field-configuration-object
interface IFieldConfigurationObject {
/**
* Added in 6.18.0
*
* Demo
* see http://angular-formly.com/#/example/other/unique-value-async-validation
*/
asyncValidators: {
[key: string]: string | IExpresssionFunction | IValidator;
}
/**
* This is a great way to add custom behavior to a specific field. It is injectable with the $scope of the
* field, and anything else you have in your injector.