@types/chrome 0.0.167 → 0.0.168

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 +7 -2
  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: Mon, 06 Dec 2021 02:01:00 GMT
11
+ * Last updated: Mon, 06 Dec 2021 04:01:01 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
@@ -775,7 +775,7 @@ declare namespace chrome.browserAction {
775
775
 
776
776
  export interface BadgeTextDetails {
777
777
  /** Any number of characters can be passed, but only about four can fit in the space. */
778
- text?: string | null;
778
+ text?: string | null | undefined;
779
779
  /** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
780
780
  tabId?: number | undefined;
781
781
  }
@@ -7133,7 +7133,10 @@ declare namespace chrome.runtime {
7133
7133
  declare namespace chrome.scripting {
7134
7134
 
7135
7135
  /* The CSS style origin for a style change. */
7136
- export type StyleOrigin = "AUTHOR" | "USER";
7136
+ export type StyleOrigin = 'AUTHOR' | 'USER';
7137
+
7138
+ /* The JavaScript world for a script to execute within. */
7139
+ export type ExecutionWorld = 'ISOLATED' | 'MAIN';
7137
7140
 
7138
7141
  export interface InjectionResult {
7139
7142
  /* The frame associated with the injection. */
@@ -7165,6 +7168,8 @@ declare namespace chrome.scripting {
7165
7168
  export type ScriptInjection<Args extends any[] = []> = {
7166
7169
  /* Details specifying the target into which to inject the script. */
7167
7170
  target: InjectionTarget;
7171
+ /* The JavaScript world for a script to execute within. */
7172
+ world?: ExecutionWorld;
7168
7173
  } & ({
7169
7174
  /* The path of the JS files to inject, relative to the extension's root directory. NOTE: Currently a maximum of one file is supported. Exactly one of files and function must be specified. */
7170
7175
  files: string[];
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.167",
3
+ "version": "0.0.168",
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",
@@ -103,6 +103,6 @@
103
103
  "@types/filesystem": "*",
104
104
  "@types/har-format": "*"
105
105
  },
106
- "typesPublisherContentHash": "9c6c3c3c312e6bf36acace82e27911b1cfae87b3580e48ccd4f0cbe1b4da7b14",
106
+ "typesPublisherContentHash": "fe256390c65c3ad9525bd7c17c2a1c984d604df3aef194fbd962b6126ade8cad",
107
107
  "typeScriptVersion": "3.8"
108
108
  }