mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Angular Formly IFormlyConfig added missing properties.
This commit is contained in:
parent
4639f126d2
commit
1fed7c61fa
@ -20,6 +20,15 @@ class FormConfig {
|
||||
name: 'customInput',
|
||||
extends: 'input'
|
||||
});
|
||||
|
||||
formlyConfig.disableWarnings = true;
|
||||
formlyConfig.templateManipulators = undefined;
|
||||
|
||||
formlyConfig.extras.apiCheckInstance = null;
|
||||
formlyConfig.extras.defaultHideDirective = 'ng-if';
|
||||
formlyConfig.extras.disableNgModelAttrsManipulator = true;
|
||||
formlyConfig.extras.errorExistsAndShouldBeVisibleExpression = angular.noop;
|
||||
formlyConfig.extras.explicitAsync = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
16
angular-formly/angular-formly.d.ts
vendored
16
angular-formly/angular-formly.d.ts
vendored
@ -558,10 +558,24 @@ declare module AngularFormly {
|
||||
validateOptions?: Function;
|
||||
}
|
||||
|
||||
interface IFormlyConfigExtras {
|
||||
disableNgModelAttrsManipulator: boolean;
|
||||
apiCheckInstance: any;
|
||||
ngModelAttrsManipulatorPreferUnbound: boolean;
|
||||
removeChromeAutoComplete: boolean;
|
||||
defaultHideDirective: string;
|
||||
errorExistsAndShouldBeVisibleExpression: any;
|
||||
getFieldId: Function;
|
||||
fieldTransform: Function;
|
||||
explicitAsync: boolean;
|
||||
}
|
||||
|
||||
interface IFormlyConfig {
|
||||
disableWarnings: boolean;
|
||||
extras: IFormlyConfigExtras;
|
||||
setType(typeOptions: ITypeOptions): void;
|
||||
setWrapper(wrapperOptions: IWrapperOptions): void;
|
||||
|
||||
templateManipulators: ITemplateManipulators;
|
||||
}
|
||||
|
||||
interface ITemplateScopeOptions {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user