@types/chrome 0.0.258 → 0.0.259

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 +16 -3
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 17 Jan 2024 07:06:54 GMT
11
+ * Last updated: Thu, 25 Jan 2024 16:39:09 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
@@ -7878,16 +7878,29 @@ declare namespace chrome.scripting {
7878
7878
  /* The JavaScript world for a script to execute within. */
7879
7879
  export type ExecutionWorld = "ISOLATED" | "MAIN";
7880
7880
 
7881
- export interface InjectionResult<T> {
7882
- /* The frame associated with the injection. */
7881
+ export interface InjectionResult<T extends any = any> {
7882
+ /**
7883
+ * The document associated with the injection.
7884
+ * @since Chrome 106.
7885
+ */
7886
+ documentId: string;
7887
+ /**
7888
+ * The frame associated with the injection.
7889
+ * @since Chrome 90.
7890
+ */
7883
7891
  frameId: number;
7884
7892
  /* The result of the script execution. */
7885
- result: T;
7893
+ result?: T | undefined;
7886
7894
  }
7887
7895
 
7888
7896
  export interface InjectionTarget {
7889
7897
  /* Whether the script should inject into all frames within the tab. Defaults to false. This must not be true if frameIds is specified. */
7890
7898
  allFrames?: boolean | undefined;
7899
+ /**
7900
+ * The IDs of specific documentIds to inject into. This must not be set if frameIds is set.
7901
+ * @since Chrome 106.
7902
+ */
7903
+ documentIds?: string[] | undefined;
7891
7904
  /* The IDs of specific frames to inject into. */
7892
7905
  frameIds?: number[] | undefined;
7893
7906
  /* The ID of the tab into which to inject. */
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.258",
3
+ "version": "0.0.259",
4
4
  "description": "TypeScript definitions for chrome",
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": "581693ead7a4b515a196100a0b909475c8e789d7eccb65e95f3bc6e2faedafc1",
96
+ "typesPublisherContentHash": "abb8f366929ce60903f4d0a14e5676af6111f1d473ce3e63fe8e52d4a8ea5bc8",
97
97
  "typeScriptVersion": "4.6"
98
98
  }