mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-01 11:50:54 +08:00
Changed type of "data" to { [key: string]: any; }
Changed the type of the data property on the IFieldGroup, ITypeOptions, IFormOptionsAPI, and IFieldConfigurationObject interfaces from "Object" to a hash of string to any. While Object was not incorrect, it made use without a cast a type error in all but the most trivial cases.
This commit is contained in:
Vendored
+12
-4
@@ -21,7 +21,9 @@ declare module AngularFormly {
|
||||
}
|
||||
|
||||
interface IFieldGroup {
|
||||
data?: Object;
|
||||
data?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
className?: string;
|
||||
elementAttributes?: string;
|
||||
fieldGroup?: IFieldArray;
|
||||
@@ -37,7 +39,9 @@ declare module AngularFormly {
|
||||
|
||||
|
||||
interface IFormOptionsAPI {
|
||||
data?: Object;
|
||||
data?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
fieldTransform?: Function;
|
||||
formState?: Object;
|
||||
removeChromeAutoComplete?: boolean;
|
||||
@@ -177,7 +181,9 @@ declare module AngularFormly {
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#data-object
|
||||
*/
|
||||
data?: Object;
|
||||
data?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -536,7 +542,9 @@ declare module AngularFormly {
|
||||
apiCheckOptions?: Object;
|
||||
defaultOptions?: IFieldConfigurationObject | Function;
|
||||
controller?: Function | string | any[];
|
||||
data?: Object;
|
||||
data?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
extends?: string;
|
||||
link?: ng.IDirectiveLinkFn;
|
||||
overwriteOk?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user