@types/chrome 0.0.229 → 0.0.230

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +38 -1
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 11 Apr 2023 08:33:08 GMT
11
+ * Last updated: Wed, 12 Apr 2023 06:03:15 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
  * Global values: `chrome`
14
14
 
chrome/index.d.ts CHANGED
@@ -7543,6 +7543,7 @@ declare namespace chrome.scripting {
7543
7543
  interface RegisteredContentScript {
7544
7544
  id: string;
7545
7545
  allFrames?: boolean;
7546
+ matchOriginAsFallback?: boolean;
7546
7547
  css?: string[];
7547
7548
  excludeMatches?: string[];
7548
7549
  js?: string[];
@@ -7660,6 +7661,19 @@ declare namespace chrome.scripting {
7660
7661
  */
7661
7662
  export function getRegisteredContentScripts(callback: (scripts: RegisteredContentScript[]) => void): void;
7662
7663
  export function getRegisteredContentScripts(filter: ContentScriptFilter, callback: (scripts: RegisteredContentScript[]) => void): void;
7664
+
7665
+ /**
7666
+ * Updates one or more content scripts.
7667
+ * @param scripts
7668
+ */
7669
+ export function updateContentScripts(scripts: RegisteredContentScript[]): Promise<void>;
7670
+
7671
+ /**
7672
+ * Updates one or more content scripts.
7673
+ * @param scripts
7674
+ * @param callback
7675
+ */
7676
+ export function updateContentScripts(scripts: RegisteredContentScript[], callback: () => void): void;
7663
7677
  }
7664
7678
 
7665
7679
  ////////////////////
@@ -7732,6 +7746,11 @@ declare namespace chrome.sessions {
7732
7746
  /** The maximum number of sessions.Session that will be included in a requested list. */
7733
7747
  export var MAX_SESSION_RESULTS: number;
7734
7748
 
7749
+ /**
7750
+ * Gets the list of recently closed tabs and/or windows.
7751
+ * @return The `getRecentlyClosed` method provides its result via callback or returned as a `Promise` (MV3 only).
7752
+ */
7753
+ export function getRecentlyClosed(filter?: Filter): Promise<Session[]>;
7735
7754
  /**
7736
7755
  * Gets the list of recently closed tabs and/or windows.
7737
7756
  * @param callback
@@ -7744,6 +7763,11 @@ declare namespace chrome.sessions {
7744
7763
  * Parameter sessions: The list of closed entries in reverse order that they were closed (the most recently closed tab or window will be at index 0). The entries may contain either tabs or windows.
7745
7764
  */
7746
7765
  export function getRecentlyClosed(callback: (sessions: Session[]) => void): void;
7766
+ /**
7767
+ * Retrieves all devices with synced sessions.
7768
+ * @return The `getDevices` method provides its result via callback or returned as a `Promise` (MV3 only).
7769
+ */
7770
+ export function getDevices(filter?: Filter): Promise<Device[]>;
7747
7771
  /**
7748
7772
  * Retrieves all devices with synced sessions.
7749
7773
  * @param callback
@@ -7756,6 +7780,13 @@ declare namespace chrome.sessions {
7756
7780
  * Parameter devices: The list of sessions.Device objects for each synced session, sorted in order from device with most recently modified session to device with least recently modified session. tabs.Tab objects are sorted by recency in the windows.Window of the sessions.Session objects.
7757
7781
  */
7758
7782
  export function getDevices(callback: (devices: Device[]) => void): void;
7783
+ /**
7784
+ * Reopens a windows.Window or tabs.Tab.
7785
+ * @param sessionId Optional.
7786
+ * The windows.Window.sessionId, or tabs.Tab.sessionId to restore. If this parameter is not specified, the most recently closed session is restored.
7787
+ * @return The `restore` method provides its result via callback or returned as a `Promise` (MV3 only).
7788
+ */
7789
+ export function restore(sessionId?: string): Promise<Session>;
7759
7790
  /**
7760
7791
  * Reopens a windows.Window or tabs.Tab, with an optional callback to run when the entry has been restored.
7761
7792
  * @param sessionId Optional.
@@ -7763,7 +7794,13 @@ declare namespace chrome.sessions {
7763
7794
  * @param callback Optional.
7764
7795
  * Parameter restoredSession: A sessions.Session containing the restored windows.Window or tabs.Tab object.
7765
7796
  */
7766
- export function restore(sessionId?: string, callback?: (restoredSession: Session) => void): void;
7797
+ export function restore(sessionId: string, callback: (restoredSession: Session) => void): void;
7798
+ /**
7799
+ * Reopens a windows.Window or tabs.Tab, with an optional callback to run when the entry has been restored.
7800
+ * @param callback Optional.
7801
+ * Parameter restoredSession: A sessions.Session containing the restored windows.Window or tabs.Tab object.
7802
+ */
7803
+ export function restore(callback: (restoredSession: Session) => void): void;
7767
7804
 
7768
7805
  /** Fired when recently closed tabs and/or windows are changed. This event does not monitor synced sessions changes. */
7769
7806
  export var onChanged: SessionChangedEvent;
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.229",
3
+ "version": "0.0.230",
4
4
  "description": "TypeScript definitions for Chrome extension development",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -93,6 +93,6 @@
93
93
  "@types/filesystem": "*",
94
94
  "@types/har-format": "*"
95
95
  },
96
- "typesPublisherContentHash": "e44d09357d0ede268b3f87a11def92c60c2ce132c1d4f3e18b954a3cb08ebeea",
96
+ "typesPublisherContentHash": "fecca31e026d8c7c42e90050d56de4ca16e920f48177b16dab8e29315ce8a950",
97
97
  "typeScriptVersion": "4.3"
98
98
  }