mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #15411 from DaveWM/master
Angular formly - allow fieldTransform to be an array of functions
This commit is contained in:
@@ -30,6 +30,7 @@ class FormConfig {
|
||||
formlyConfig.extras.errorExistsAndShouldBeVisibleExpression = angular.noop;
|
||||
formlyConfig.extras.explicitAsync = true;
|
||||
formlyConfig.extras.fieldTransform = angular.noop;
|
||||
formlyConfig.extras.fieldTransform = [angular.noop];
|
||||
formlyConfig.extras.getFieldId = angular.noop;
|
||||
formlyConfig.extras.ngModelAttrsManipulatorPreferUnbound = true;
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -1,4 +1,4 @@
|
||||
// Type definitions for angular-formly 7.2.3
|
||||
// Type definitions for angular-formly 7.2.4
|
||||
// Project: https://github.com/formly-js/angular-formly
|
||||
// Definitions by: Scott Hatcher <https://github.com/scatcher>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -44,7 +44,7 @@ declare namespace AngularFormly {
|
||||
data?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
fieldTransform?: Function;
|
||||
fieldTransform?: Function | Array<Function>;
|
||||
formState?: Object;
|
||||
removeChromeAutoComplete?: boolean;
|
||||
resetModel?: Function;
|
||||
@@ -580,7 +580,7 @@ declare namespace AngularFormly {
|
||||
defaultHideDirective: string;
|
||||
errorExistsAndShouldBeVisibleExpression: any;
|
||||
getFieldId: Function;
|
||||
fieldTransform: Function;
|
||||
fieldTransform: Function | Array<Function>;
|
||||
explicitAsync: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user