mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
updates to titanium (#40454)
* fix for alloy typings. * fix for typings. * fix for linting issues. * removed redundant keyword. * fix for typo. * losened typings for alloy. * added args. * added missing API. * removal of properties that are better defined manually. * added global index accessor. * fix review comments.
This commit is contained in:
parent
f4e58f2e65
commit
f26f5b69e2
25
types/alloy/index.d.ts
vendored
25
types/alloy/index.d.ts
vendored
@ -8,10 +8,17 @@
|
||||
/// <reference types="backbone" />
|
||||
/// <reference types="titanium" />
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
1
types/titanium/index.d.ts
vendored
1
types/titanium/index.d.ts
vendored
@ -62543,6 +62543,7 @@ interface ListDataItem {
|
||||
*/
|
||||
properties?: any;
|
||||
|
||||
[key: string]: any;
|
||||
}
|
||||
/**
|
||||
* Represents the custom edit action for a ListItem.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user