@types/titanium 12.0.4 → 12.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- titanium/README.md +1 -1
- titanium/index.d.ts +29 -29
- titanium/package.json +2 -2
titanium/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for titanium (https://github.com/appceler
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/titanium.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
titanium/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
type _Omit<T, K extends keyof any | undefined> = Pick<T, Exclude<keyof T, K>>;
|
|
5
5
|
type FunctionPropertyNames<T> = {
|
|
6
|
-
//
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
7
7
|
[K in keyof T]: T[K] extends Function ? K : never;
|
|
8
8
|
}[keyof T];
|
|
9
9
|
type Dictionary<T> = Partial<_Omit<T, FunctionPropertyNames<Ti.Proxy>>>;
|
|
@@ -6500,7 +6500,7 @@ declare namespace Titanium {
|
|
|
6500
6500
|
* Adds an array of Titanium.App.iOS.SearchableItem objects to the default search index.
|
|
6501
6501
|
*/
|
|
6502
6502
|
addToDefaultSearchableIndex(
|
|
6503
|
-
Array:
|
|
6503
|
+
Array: readonly Titanium.App.iOS.SearchableItem[],
|
|
6504
6504
|
callback: (param0: any) => void,
|
|
6505
6505
|
): void;
|
|
6506
6506
|
|
|
@@ -6508,7 +6508,7 @@ declare namespace Titanium {
|
|
|
6508
6508
|
* Removes search items based on an array of domain identifiers.
|
|
6509
6509
|
*/
|
|
6510
6510
|
deleteAllSearchableItemByDomainIdenifiers(
|
|
6511
|
-
Array:
|
|
6511
|
+
Array: readonly string[],
|
|
6512
6512
|
callback: (param0: any) => void,
|
|
6513
6513
|
): void;
|
|
6514
6514
|
|
|
@@ -6520,7 +6520,7 @@ declare namespace Titanium {
|
|
|
6520
6520
|
/**
|
|
6521
6521
|
* Removes search items based on an array of identifiers.
|
|
6522
6522
|
*/
|
|
6523
|
-
deleteSearchableItemsByIdentifiers(Array:
|
|
6523
|
+
deleteSearchableItemsByIdentifiers(Array: readonly string[], callback: (param0: any) => void): void;
|
|
6524
6524
|
|
|
6525
6525
|
/**
|
|
6526
6526
|
* Fires a synthesized event to any registered listeners.
|
|
@@ -7245,7 +7245,7 @@ declare namespace Titanium {
|
|
|
7245
7245
|
/**
|
|
7246
7246
|
* Deletes user activities created by your app that have the specified persistent identifiers.
|
|
7247
7247
|
*/
|
|
7248
|
-
deleteSavedUserActivitiesForPersistentIdentifiers(persistentIdentifiers:
|
|
7248
|
+
deleteSavedUserActivitiesForPersistentIdentifiers(persistentIdentifiers: readonly string[]): void;
|
|
7249
7249
|
|
|
7250
7250
|
/**
|
|
7251
7251
|
* Fires a synthesized event to any registered listeners.
|
|
@@ -7516,7 +7516,7 @@ declare namespace Titanium {
|
|
|
7516
7516
|
* Removes the specified delivered notifications from the notification-center.
|
|
7517
7517
|
* If no notifications are specified, all delivered notifications will be removed.
|
|
7518
7518
|
*/
|
|
7519
|
-
static removeDeliveredNotifications(notifications:
|
|
7519
|
+
static removeDeliveredNotifications(notifications: readonly UserNotificationDictionary[]): void;
|
|
7520
7520
|
|
|
7521
7521
|
/**
|
|
7522
7522
|
* Removes the specified callback as an event listener for the named event.
|
|
@@ -7527,7 +7527,7 @@ declare namespace Titanium {
|
|
|
7527
7527
|
* Removes the specified pending notifications to prevent them from being triggered.
|
|
7528
7528
|
* If no notifications are specified, all pending notifications will be removed.
|
|
7529
7529
|
*/
|
|
7530
|
-
static removePendingNotifications(notifications:
|
|
7530
|
+
static removePendingNotifications(notifications: readonly UserNotificationDictionary[]): void;
|
|
7531
7531
|
|
|
7532
7532
|
/**
|
|
7533
7533
|
* Notification types and user notification categories the application is registered to use.
|
|
@@ -7719,7 +7719,7 @@ declare namespace Titanium {
|
|
|
7719
7719
|
/**
|
|
7720
7720
|
* Returns the value of a property as an array data type.
|
|
7721
7721
|
*/
|
|
7722
|
-
static getList(property: string, defaultValue?:
|
|
7722
|
+
static getList(property: string, defaultValue?: readonly any[]): any[];
|
|
7723
7723
|
|
|
7724
7724
|
/**
|
|
7725
7725
|
* Returns the value of a property as an object.
|
|
@@ -7786,7 +7786,7 @@ declare namespace Titanium {
|
|
|
7786
7786
|
* Sets the value of a property as an array data type. The property will be created if it
|
|
7787
7787
|
* does not exist.
|
|
7788
7788
|
*/
|
|
7789
|
-
static setList(property: string, value:
|
|
7789
|
+
static setList(property: string, value: readonly any[]): void;
|
|
7790
7790
|
|
|
7791
7791
|
/**
|
|
7792
7792
|
* Sets the value of a property as an object data type. The property will be created if it
|
|
@@ -9559,7 +9559,7 @@ declare namespace Titanium {
|
|
|
9559
9559
|
/**
|
|
9560
9560
|
* Executes an SQL statement against the database and returns a `ResultSet`.
|
|
9561
9561
|
*/
|
|
9562
|
-
execute(sql: string, vararg?:
|
|
9562
|
+
execute(sql: string, vararg?: readonly string[]): Titanium.Database.ResultSet;
|
|
9563
9563
|
|
|
9564
9564
|
/**
|
|
9565
9565
|
* Executes an SQL statement against the database and returns a `ResultSet`.
|
|
@@ -9569,20 +9569,20 @@ declare namespace Titanium {
|
|
|
9569
9569
|
/**
|
|
9570
9570
|
* Executes an SQL statement against the database and returns a `ResultSet`.
|
|
9571
9571
|
*/
|
|
9572
|
-
execute(sql: string, vararg?:
|
|
9572
|
+
execute(sql: string, vararg?: readonly any[]): Titanium.Database.ResultSet;
|
|
9573
9573
|
|
|
9574
9574
|
/**
|
|
9575
9575
|
* Synchronously executes an array of SQL statements against the database and returns an array of `ResultSet`.
|
|
9576
9576
|
* On failure, this will throw an [Error](BatchQueryError) that reports the failed index and partial results
|
|
9577
9577
|
*/
|
|
9578
|
-
executeAll(queries:
|
|
9578
|
+
executeAll(queries: readonly string[]): Titanium.Database.ResultSet[];
|
|
9579
9579
|
|
|
9580
9580
|
/**
|
|
9581
9581
|
* Asynchronously executes an array of SQL statements against the database and fires a callback with a possible Error, and an array of `ResultSet`.
|
|
9582
9582
|
* On failure, this will call the callback with an [Error](PossibleBatchQueryError) that reports the failed `index`, and a second argument with the partial `results`.
|
|
9583
9583
|
*/
|
|
9584
9584
|
executeAllAsync(
|
|
9585
|
-
queries:
|
|
9585
|
+
queries: readonly string[],
|
|
9586
9586
|
callback?: (param0: PossibleBatchQueryError, param1: Titanium.Database.ResultSet[]) => void,
|
|
9587
9587
|
): Promise<Titanium.Database.ResultSet[]>;
|
|
9588
9588
|
|
|
@@ -11041,8 +11041,8 @@ declare namespace Titanium {
|
|
|
11041
11041
|
* Android media providers, such as the Gallery.
|
|
11042
11042
|
*/
|
|
11043
11043
|
static scanMediaFiles(
|
|
11044
|
-
paths:
|
|
11045
|
-
mimeTypes:
|
|
11044
|
+
paths: readonly string[],
|
|
11045
|
+
mimeTypes: readonly string[],
|
|
11046
11046
|
callback: (param0: MediaScannerResponse) => void,
|
|
11047
11047
|
): void;
|
|
11048
11048
|
|
|
@@ -12930,7 +12930,7 @@ declare namespace Titanium {
|
|
|
12930
12930
|
* Asynchronously request thumbnail images for one or more points in time in the video.
|
|
12931
12931
|
*/
|
|
12932
12932
|
requestThumbnailImagesAtTimes(
|
|
12933
|
-
times:
|
|
12933
|
+
times: readonly number[],
|
|
12934
12934
|
option: number,
|
|
12935
12935
|
callback: (param0: ThumbnailResponse) => void,
|
|
12936
12936
|
): void;
|
|
@@ -33998,7 +33998,7 @@ declare namespace Titanium {
|
|
|
33998
33998
|
/**
|
|
33999
33999
|
* Appends the data entries to the end of the list section.
|
|
34000
34000
|
*/
|
|
34001
|
-
appendItems(dataItems:
|
|
34001
|
+
appendItems(dataItems: readonly ListDataItem[], animation?: ListViewAnimationProperties): void;
|
|
34002
34002
|
|
|
34003
34003
|
/**
|
|
34004
34004
|
* Removes count entries from the list section at the specified index.
|
|
@@ -34020,7 +34020,7 @@ declare namespace Titanium {
|
|
|
34020
34020
|
*/
|
|
34021
34021
|
insertItemsAt(
|
|
34022
34022
|
itemIndex: number,
|
|
34023
|
-
dataItems:
|
|
34023
|
+
dataItems: readonly ListDataItem[],
|
|
34024
34024
|
animation?: ListViewAnimationProperties,
|
|
34025
34025
|
): void;
|
|
34026
34026
|
|
|
@@ -34036,14 +34036,14 @@ declare namespace Titanium {
|
|
|
34036
34036
|
replaceItemsAt(
|
|
34037
34037
|
index: number,
|
|
34038
34038
|
count: number,
|
|
34039
|
-
dataItems:
|
|
34039
|
+
dataItems: readonly ListDataItem[],
|
|
34040
34040
|
animation?: ListViewAnimationProperties,
|
|
34041
34041
|
): void;
|
|
34042
34042
|
|
|
34043
34043
|
/**
|
|
34044
34044
|
* Sets the data entries in the list section.
|
|
34045
34045
|
*/
|
|
34046
|
-
setItems(dataItems:
|
|
34046
|
+
setItems(dataItems: readonly ListDataItem[], animation?: ListViewAnimationProperties): void;
|
|
34047
34047
|
|
|
34048
34048
|
/**
|
|
34049
34049
|
* Updates an item at the specified index.
|
|
@@ -43453,7 +43453,7 @@ declare namespace Titanium {
|
|
|
43453
43453
|
/**
|
|
43454
43454
|
* Inserts views at the specified position in the [views](Titanium.UI.ScrollableView.views) array.
|
|
43455
43455
|
*/
|
|
43456
|
-
insertViewsAt(position: number, views:
|
|
43456
|
+
insertViewsAt(position: number, views: readonly Titanium.UI.View[]): void;
|
|
43457
43457
|
|
|
43458
43458
|
/**
|
|
43459
43459
|
* Sets the current page to the next consecutive page in <Titanium.UI.ScrollableView.views>.
|
|
@@ -55362,12 +55362,12 @@ declare namespace Titanium {
|
|
|
55362
55362
|
/**
|
|
55363
55363
|
* Add native properties for observing for change.
|
|
55364
55364
|
*/
|
|
55365
|
-
startListeningToProperties(propertyList:
|
|
55365
|
+
startListeningToProperties(propertyList: readonly string[]): void;
|
|
55366
55366
|
|
|
55367
55367
|
/**
|
|
55368
55368
|
* Remove native properties from observing.
|
|
55369
55369
|
*/
|
|
55370
|
-
stopListeningToProperties(propertyList:
|
|
55370
|
+
stopListeningToProperties(propertyList: readonly string[]): void;
|
|
55371
55371
|
|
|
55372
55372
|
/**
|
|
55373
55373
|
* Stops loading a currently loading page.
|
|
@@ -56435,7 +56435,7 @@ declare namespace Titanium {
|
|
|
56435
56435
|
/**
|
|
56436
56436
|
* Sets the array of items to show in the window's toolbar.
|
|
56437
56437
|
*/
|
|
56438
|
-
setToolbar(items:
|
|
56438
|
+
setToolbar(items: readonly any[], params?: windowToolbarParam): void;
|
|
56439
56439
|
|
|
56440
56440
|
/**
|
|
56441
56441
|
* Makes the navigation bar visible.
|
|
@@ -57949,7 +57949,7 @@ declare namespace Titanium {
|
|
|
57949
57949
|
*/
|
|
57950
57950
|
static registerBroadcastReceiver(
|
|
57951
57951
|
broadcastReceiver: Titanium.Android.BroadcastReceiver,
|
|
57952
|
-
actions:
|
|
57952
|
+
actions: readonly string[],
|
|
57953
57953
|
): void;
|
|
57954
57954
|
|
|
57955
57955
|
/**
|
|
@@ -59020,7 +59020,7 @@ declare namespace Titanium {
|
|
|
59020
59020
|
/**
|
|
59021
59021
|
* Commits all pending changes to the underlying contacts database.
|
|
59022
59022
|
*/
|
|
59023
|
-
static save(contacts:
|
|
59023
|
+
static save(contacts: readonly Titanium.Contacts.Person[]): void;
|
|
59024
59024
|
|
|
59025
59025
|
/**
|
|
59026
59026
|
* Displays a picker that allows a person to be selected.
|
|
@@ -59218,7 +59218,7 @@ declare namespace Titanium {
|
|
|
59218
59218
|
/**
|
|
59219
59219
|
* Returns a `File` object representing the file identified by the path arguments.
|
|
59220
59220
|
*/
|
|
59221
|
-
static getFile(path:
|
|
59221
|
+
static getFile(path: readonly string[]): Titanium.Filesystem.File;
|
|
59222
59222
|
|
|
59223
59223
|
/**
|
|
59224
59224
|
* Returns `true` if the app has storage permissions.
|
|
@@ -59658,7 +59658,7 @@ declare namespace Titanium {
|
|
|
59658
59658
|
/**
|
|
59659
59659
|
* IOStream is the interface that all stream types implement.
|
|
59660
59660
|
*/
|
|
59661
|
-
//
|
|
59661
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
59662
59662
|
class IOStream extends Titanium.Proxy {
|
|
59663
59663
|
/**
|
|
59664
59664
|
* Adds the specified callback as an event listener for the named event.
|
|
@@ -60214,7 +60214,7 @@ declare namespace Titanium {
|
|
|
60214
60214
|
/**
|
|
60215
60215
|
* Makes the device vibrate.
|
|
60216
60216
|
*/
|
|
60217
|
-
static vibrate(pattern?:
|
|
60217
|
+
static vibrate(pattern?: readonly number[]): void;
|
|
60218
60218
|
}
|
|
60219
60219
|
/**
|
|
60220
60220
|
* Base type for all Titanium modules.
|
titanium/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/titanium",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.5",
|
|
4
4
|
"description": "TypeScript definitions for titanium",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/titanium",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"scripts": {},
|
|
37
37
|
"dependencies": {},
|
|
38
|
-
"typesPublisherContentHash": "
|
|
38
|
+
"typesPublisherContentHash": "09eceb317ccf66741762194bf4cd48a9a89e434ae2e713032909a0645d8fc743",
|
|
39
39
|
"typeScriptVersion": "4.5",
|
|
40
40
|
"nonNpm": true
|
|
41
41
|
}
|