chrome-types 0.1.228 → 0.1.230

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. package/_all.d.ts +36 -8
  2. package/index.d.ts +36 -8
  3. package/package.json +2 -2
package/_all.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Mon Aug 28 2023 22:27:53 GMT+0000 (Coordinated Universal Time)
18
- // Built at 5a882556b490e9b985ac546053bcc7e81b8d12ed
17
+ // Generated on Wed Aug 30 2023 22:29:46 GMT+0000 (Coordinated Universal Time)
18
+ // Built at d1be98aed8a701f49db15fa11f43490413fbab99
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -22572,6 +22572,34 @@ declare namespace chrome {
22572
22572
  * True if the entry has been read.
22573
22573
  */
22574
22574
  hasBeenRead: boolean;
22575
+
22576
+ /**
22577
+ * The last update time of the entry. Recorded in milliseconds since Jan 1st 1970.
22578
+ */
22579
+ lastUpdateTime: number;
22580
+
22581
+ /**
22582
+ * The creation time of the entry. Recorded in milliseconds since Jan 1st 1970.
22583
+ */
22584
+ creationTime: number;
22585
+ }
22586
+
22587
+ export interface AddEntryOptions {
22588
+
22589
+ /**
22590
+ * The url of the entry.
22591
+ */
22592
+ url: string;
22593
+
22594
+ /**
22595
+ * The title of the entry.
22596
+ */
22597
+ title: string;
22598
+
22599
+ /**
22600
+ * True if the entry has been read.
22601
+ */
22602
+ hasBeenRead: boolean;
22575
22603
  }
22576
22604
 
22577
22605
  export interface RemoveOptions {
@@ -22626,9 +22654,9 @@ declare namespace chrome {
22626
22654
  ) => void>;
22627
22655
 
22628
22656
  /**
22629
- * Triggered when a ReadingListEntry is about to be removed from the reading list.
22657
+ * Triggered when a ReadingListEntry is removed from the reading list.
22630
22658
  */
22631
- export const onEntryWillBeRemoved: events.Event<(
22659
+ export const onEntryRemoved: events.Event<(
22632
22660
  entry: ReadingListEntry,
22633
22661
  ) => void>;
22634
22662
 
@@ -22646,7 +22674,7 @@ declare namespace chrome {
22646
22674
  */
22647
22675
  export function addEntry(
22648
22676
 
22649
- entry: ReadingListEntry,
22677
+ entry: AddEntryOptions,
22650
22678
  ): Promise<void>;
22651
22679
 
22652
22680
  /**
@@ -22657,7 +22685,7 @@ declare namespace chrome {
22657
22685
  */
22658
22686
  export function addEntry(
22659
22687
 
22660
- entry: ReadingListEntry,
22688
+ entry: AddEntryOptions,
22661
22689
 
22662
22690
  callback?: () => void,
22663
22691
  ): void;
@@ -29274,14 +29302,14 @@ declare namespace chrome {
29274
29302
  ): void;
29275
29303
 
29276
29304
  /**
29277
- * Gets the tab that this script call is being made from. May be undefined if called from a non-tab context (for example, a background page or popup view).
29305
+ * Gets the tab that this script call is being made from. Returns `undefined` if called from a non-tab context (for example, a background page or popup view).
29278
29306
  *
29279
29307
  * @chrome-returns-extra since Chrome 88
29280
29308
  */
29281
29309
  export function getCurrent(): Promise<Tab | undefined>;
29282
29310
 
29283
29311
  /**
29284
- * Gets the tab that this script call is being made from. May be undefined if called from a non-tab context (for example, a background page or popup view).
29312
+ * Gets the tab that this script call is being made from. Returns `undefined` if called from a non-tab context (for example, a background page or popup view).
29285
29313
  */
29286
29314
  export function getCurrent(
29287
29315
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Mon Aug 28 2023 22:27:48 GMT+0000 (Coordinated Universal Time)
18
- // Built at 5a882556b490e9b985ac546053bcc7e81b8d12ed
17
+ // Generated on Wed Aug 30 2023 22:29:41 GMT+0000 (Coordinated Universal Time)
18
+ // Built at d1be98aed8a701f49db15fa11f43490413fbab99
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -17336,6 +17336,34 @@ declare namespace chrome {
17336
17336
  * True if the entry has been read.
17337
17337
  */
17338
17338
  hasBeenRead: boolean;
17339
+
17340
+ /**
17341
+ * The last update time of the entry. Recorded in milliseconds since Jan 1st 1970.
17342
+ */
17343
+ lastUpdateTime: number;
17344
+
17345
+ /**
17346
+ * The creation time of the entry. Recorded in milliseconds since Jan 1st 1970.
17347
+ */
17348
+ creationTime: number;
17349
+ }
17350
+
17351
+ export interface AddEntryOptions {
17352
+
17353
+ /**
17354
+ * The url of the entry.
17355
+ */
17356
+ url: string;
17357
+
17358
+ /**
17359
+ * The title of the entry.
17360
+ */
17361
+ title: string;
17362
+
17363
+ /**
17364
+ * True if the entry has been read.
17365
+ */
17366
+ hasBeenRead: boolean;
17339
17367
  }
17340
17368
 
17341
17369
  export interface RemoveOptions {
@@ -17390,9 +17418,9 @@ declare namespace chrome {
17390
17418
  ) => void>;
17391
17419
 
17392
17420
  /**
17393
- * Triggered when a ReadingListEntry is about to be removed from the reading list.
17421
+ * Triggered when a ReadingListEntry is removed from the reading list.
17394
17422
  */
17395
- export const onEntryWillBeRemoved: events.Event<(
17423
+ export const onEntryRemoved: events.Event<(
17396
17424
  entry: ReadingListEntry,
17397
17425
  ) => void>;
17398
17426
 
@@ -17410,7 +17438,7 @@ declare namespace chrome {
17410
17438
  */
17411
17439
  export function addEntry(
17412
17440
 
17413
- entry: ReadingListEntry,
17441
+ entry: AddEntryOptions,
17414
17442
  ): Promise<void>;
17415
17443
 
17416
17444
  /**
@@ -17421,7 +17449,7 @@ declare namespace chrome {
17421
17449
  */
17422
17450
  export function addEntry(
17423
17451
 
17424
- entry: ReadingListEntry,
17452
+ entry: AddEntryOptions,
17425
17453
 
17426
17454
  callback?: () => void,
17427
17455
  ): void;
@@ -22482,14 +22510,14 @@ declare namespace chrome {
22482
22510
  ): void;
22483
22511
 
22484
22512
  /**
22485
- * Gets the tab that this script call is being made from. May be undefined if called from a non-tab context (for example, a background page or popup view).
22513
+ * Gets the tab that this script call is being made from. Returns `undefined` if called from a non-tab context (for example, a background page or popup view).
22486
22514
  *
22487
22515
  * @chrome-returns-extra since Chrome 88
22488
22516
  */
22489
22517
  export function getCurrent(): Promise<Tab | undefined>;
22490
22518
 
22491
22519
  /**
22492
- * Gets the tab that this script call is being made from. May be undefined if called from a non-tab context (for example, a background page or popup view).
22520
+ * Gets the tab that this script call is being made from. Returns `undefined` if called from a non-tab context (for example, a background page or popup view).
22493
22521
  */
22494
22522
  export function getCurrent(
22495
22523
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "7bac7cd6a8d51f1b"
8
+ "build-hash": "2f00a3cc24ef18fd"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -16,5 +16,5 @@
16
16
  "url": "https://github.com/GoogleChrome/chrome-types/issues"
17
17
  },
18
18
  "homepage": "https://github.com/GoogleChrome/chrome-types",
19
- "version": "0.1.228"
19
+ "version": "0.1.230"
20
20
  }