diff --git a/types/alloy/index.d.ts b/types/alloy/index.d.ts index 82fc6427d0..dc67140cb4 100644 --- a/types/alloy/index.d.ts +++ b/types/alloy/index.d.ts @@ -8,10 +8,17 @@ /// /// +interface AlloyControllerUI { + create(apiName: string, opts?: any): any; +} + /** * The base class for Alloy controllers. */ interface AlloyController extends Backbone.Events { + args: any; + UI: AlloyControllerUI; + /** * * @param proxy View object to which to add class(es). @@ -101,11 +108,6 @@ interface AlloyController extends Backbone.Events { * Top-level module for Alloy functions. */ interface AlloyInterface { - /** - * An object that stores Alloy configuration values as defined in your app's app/config.json file - */ - CFG: unknown; - /** * An object for storing globally accessible Alloy collections. Singleton collections created via markup will be stored on this object. */ @@ -114,11 +116,6 @@ interface AlloyInterface { instance(name: string): unknown; }; - /** - * An object for storing globally accessible variables and functions. - */ - Globals: unknown; - /** * An object for storing globally accessible Alloy models. Singleton models created via markup will be stored on this object. */ @@ -148,7 +145,7 @@ interface AlloyInterface { * @param name Name of controller to instantiate. * @param args Arguments to pass to the controller */ - createController(name: string, args?: any): AlloyController; + createController(name: string, args?: any): any; /** * Factory method for instantiating a Backbone Model object. Creates and returns an instance of the named model. @@ -165,8 +162,8 @@ interface AlloyInterface { * @param name Name of the view within the widget to instantiate ('widget' by default) * @param args Arguments to pass to the widget. */ - createWidget(id: string, args?: any): AlloyController; - createWidget(id: string, name?: string, args?: any): AlloyController; + createWidget(id: string, args?: any): any; + createWidget(id: string, name?: string, args?: any): any; } /** @@ -184,7 +181,7 @@ interface WidgetInterface { * @param name Name of controller to instantiate. * @param args Arguments to pass to the controller */ - createController(name: string, args?: any): AlloyController; + createController(name: string, args?: any): any; } /** diff --git a/types/titanium/index.d.ts b/types/titanium/index.d.ts index 967ee93076..8566aba21c 100644 --- a/types/titanium/index.d.ts +++ b/types/titanium/index.d.ts @@ -62543,6 +62543,7 @@ interface ListDataItem { */ properties?: any; + [key: string]: any; } /** * Represents the custom edit action for a ListItem.