@types/chrome 0.3.4 → 0.3.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. chrome/README.md +1 -1
  2. chrome/index.d.ts +32 -10
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (https://developer.chrome.com/
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, 29 Sep 2026 02:43:36 GMT
11
+ * Last updated: Fri, 09 Oct 2026 18:42:20 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
 
14
14
  # Credits
chrome/index.d.ts CHANGED
@@ -4671,7 +4671,7 @@ declare namespace chrome {
4671
4671
  /** Matches if the URL (without fragment identifier) ends with a specified string. Port numbers are stripped from the URL if they match the default port number. */
4672
4672
  urlSuffix?: string | undefined;
4673
4673
  /** Matches if the port of the URL is contained in any of the specified port lists. For example `[80, 443, [1000, 1200]]` matches all requests on port 80, 443 and in the range 1000-1200. */
4674
- ports?: Array<number | number[]> | undefined;
4674
+ ports?: Array<number | [number, number]> | undefined;
4675
4675
  /** Matches if the URL without query segment and fragment identifier matches a specified regular expression. Port numbers are stripped from the URL if they match the default port number. The regular expressions use the RE2 syntax. */
4676
4676
  originAndPathMatches?: string | undefined;
4677
4677
  }
@@ -8943,15 +8943,6 @@ declare namespace chrome {
8943
8943
  */
8944
8944
  referrersEnabled: chrome.types.ChromeSetting<boolean>;
8945
8945
 
8946
- /**
8947
- * If disabled, Related Website Sets is deactivated.
8948
- * The value of this preference is of type boolean, and the default value is `true`.
8949
- * Extensions may only disable this API by setting the value to `false`. If you try setting this API to `true`, it will throw an error.
8950
- * @since Chrome 121
8951
- * @deprecated since Chrome 144. Will be removed around Chrome 153.
8952
- */
8953
- relatedWebsiteSetsEnabled: chrome.types.ChromeSetting<boolean>;
8954
-
8955
8946
  /**
8956
8947
  * If disabled, Chrome blocks third-party sites from setting cookies. The value of this preference is of type boolean, and the default value is `true`. Extensions may not enable this API in Incognito mode, where third-party cookies are blocked and can only be allowed at the site level. If you try setting this API to true in Incognito, it will throw an error.
8957
8948
  *
@@ -10201,6 +10192,12 @@ declare namespace chrome {
10201
10192
  */
10202
10193
  const onConnectNative: events.Event<(port: Port) => void>;
10203
10194
 
10195
+ /**
10196
+ * Fired when an extension goes from being in a disabled state to an enabled state.
10197
+ * @since Chrome 155
10198
+ */
10199
+ const onEnabled: events.Event<() => void>;
10200
+
10204
10201
  /** Sent to the event page just before it is unloaded. This gives the extension opportunity to do some clean up. Note that since the page is unloading, any asynchronous operations started while handling this event are not guaranteed to complete. If more activity for the event page occurs before it gets unloaded the onSuspendCanceled event will be sent and the page won't be unloaded. */
10205
10202
  const onSuspend: events.Event<() => void>;
10206
10203
 
@@ -11697,6 +11694,15 @@ declare namespace chrome {
11697
11694
  * @deprecated since Chrome 33. Please use {@link CreateProperties.active active}.
11698
11695
  */
11699
11696
  selected?: boolean | undefined;
11697
+ /**
11698
+ * The ID of an existing tab to create a split view with. If specified, the split-with tab must meet the following conditions:
11699
+ * * It must not be an already split tab.
11700
+ * * It must be in the same window as the newly created tab.
11701
+ * * If `windowId` is specified, it must be the same as the split-with tab's window ID.
11702
+ * * If `index` is specified, it must be an index adjacent to the split-with tab and will affect the relative positioning of the newly created tab.
11703
+ * @since Chrome 155
11704
+ */
11705
+ splitWithTabId?: number | undefined;
11700
11706
  }
11701
11707
 
11702
11708
  interface MoveProperties {
@@ -12023,6 +12029,22 @@ declare namespace chrome {
12023
12029
  function create(createProperties: CreateProperties): Promise<Tab>;
12024
12030
  function create(createProperties: CreateProperties, callback: (tab: Tab) => void): void;
12025
12031
 
12032
+ /**
12033
+ * Splits two existing tabs into a Split View.
12034
+ * @param tabIds An array of exactly two tab IDs to pair into a Split View. All tabs must meet the following conditions: They must be adjacent. They must not already be in a split view. They must have matching `windowId`, `pinned`, and `groupId` states.
12035
+ * @since Chrome 155
12036
+ */
12037
+ function createSplit(tabIds: [number, number]): Promise<number>;
12038
+ function createSplit(tabIds: [number, number], callback: (splitViewId: number) => void): void;
12039
+
12040
+ /**
12041
+ * Separates the tabs in a Split View into independent tabs.
12042
+ * @param splitViewId The ID of the Split View to separate.
12043
+ * @since Chrome 155
12044
+ */
12045
+ function unsplit(splitViewId: number): Promise<void>;
12046
+ function unsplit(splitViewId: number, callback: () => void): void;
12047
+
12026
12048
  /**
12027
12049
  * Moves one or more tabs to a new position within its window, or to a new window. Note that tabs can only be moved to and from normal (window.type === "normal") windows.
12028
12050
  * @param tabId The tab ID to move.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "TypeScript definitions for chrome",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -54,6 +54,6 @@
54
54
  "@types/har-format": "*"
55
55
  },
56
56
  "peerDependencies": {},
57
- "typesPublisherContentHash": "8333a5224a70471d616693cb5beb009d2e8ec64aa705732c9853b5d7a356789f",
57
+ "typesPublisherContentHash": "76fc785c0457b56ff51aaa280f9fb73bfa3ddf45f56ffd68266aabb276cfd9d6",
58
58
  "typeScriptVersion": "5.6"
59
59
  }