@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.
Files changed (3) hide show
  1. titanium/README.md +1 -1
  2. titanium/index.d.ts +29 -29
  3. 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: Tue, 07 Nov 2023 15:11:36 GMT
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
- // tslint:disable-next-line:ban-types
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: ReadonlyArray<Titanium.App.iOS.SearchableItem>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>, callback: (param0: any) => void): void;
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: ReadonlyArray<string>): void;
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: ReadonlyArray<UserNotificationDictionary>): void;
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: ReadonlyArray<UserNotificationDictionary>): void;
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?: ReadonlyArray<any>): any[];
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: ReadonlyArray<any>): void;
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?: ReadonlyArray<string>): Titanium.Database.ResultSet;
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?: ReadonlyArray<any>): Titanium.Database.ResultSet;
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: ReadonlyArray<string>): Titanium.Database.ResultSet[];
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
11045
- mimeTypes: ReadonlyArray<string>,
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: ReadonlyArray<number>,
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: ReadonlyArray<ListDataItem>, animation?: ListViewAnimationProperties): void;
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: ReadonlyArray<ListDataItem>,
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: ReadonlyArray<ListDataItem>,
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: ReadonlyArray<ListDataItem>, animation?: ListViewAnimationProperties): void;
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: ReadonlyArray<Titanium.UI.View>): void;
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: ReadonlyArray<string>): void;
55365
+ startListeningToProperties(propertyList: readonly string[]): void;
55366
55366
 
55367
55367
  /**
55368
55368
  * Remove native properties from observing.
55369
55369
  */
55370
- stopListeningToProperties(propertyList: ReadonlyArray<string>): void;
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: ReadonlyArray<any>, params?: windowToolbarParam): void;
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: ReadonlyArray<string>,
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: ReadonlyArray<Titanium.Contacts.Person>): void;
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: ReadonlyArray<string>): Titanium.Filesystem.File;
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
- // tslint:disable-next-line:interface-name
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?: ReadonlyArray<number>): void;
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.4",
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": "67cbeb00cd86cfb121fed088c0b9566a0009dd239b79b91cbc5320e4a71c1e93",
38
+ "typesPublisherContentHash": "09eceb317ccf66741762194bf4cd48a9a89e434ae2e713032909a0645d8fc743",
39
39
  "typeScriptVersion": "4.5",
40
40
  "nonNpm": true
41
41
  }