@types/chrome 0.2.8 → 0.2.9
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.
- chrome/README.md +2 -2
- chrome/index.d.ts +64 -17
- chrome/package.json +2 -42
chrome/README.md
CHANGED
|
@@ -8,8 +8,8 @@ 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:
|
|
11
|
+
* Last updated: Sat, 05 Sep 2026 20:03:40 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
|
|
15
|
-
These definitions were written by [
|
|
15
|
+
These definitions were written by [MatCarlson](https://github.com/MatCarlson), [Jason Xian](https://github.com/JasonXian), [userTim](https://github.com/usertim), [Nicolas Rodriguez](https://github.com/nicolas377), [Ido Salomon](https://github.com/idosal), [Federico Brigante](https://github.com/fregante), and [Erwan Jugand](https://github.com/erwanjugand).
|
chrome/index.d.ts
CHANGED
|
@@ -2902,20 +2902,59 @@ declare namespace chrome {
|
|
|
2902
2902
|
injectedScript?: string | undefined;
|
|
2903
2903
|
}
|
|
2904
2904
|
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2905
|
+
type EvaluationExceptionInfo =
|
|
2906
|
+
| {
|
|
2907
|
+
/**
|
|
2908
|
+
* Set if the error occurred on the DevTools side before the expression is evaluated.
|
|
2909
|
+
*
|
|
2910
|
+
* If `isError` is set to true, a DevTools-side error has occurred, and `code` is set to an error code.
|
|
2911
|
+
*
|
|
2912
|
+
* See the docs on `isException` for more details on parsing this object.
|
|
2913
|
+
*/
|
|
2914
|
+
isError: true;
|
|
2915
|
+
/** Set if the error occurred on the DevTools side before the expression is evaluated. */
|
|
2916
|
+
code: string;
|
|
2917
|
+
/** Set if the error occurred on the DevTools side before the expression is evaluated. */
|
|
2918
|
+
description: string;
|
|
2919
|
+
/** Set if the error occurred on the DevTools side before the expression is evaluated, contains the array of the values that may be substituted into the description string to provide more information about the cause of the error. */
|
|
2920
|
+
details: any[];
|
|
2921
|
+
/**
|
|
2922
|
+
* Set if the evaluated code produces an unhandled exception.
|
|
2923
|
+
*
|
|
2924
|
+
* If `isException` is non-null but not true, and `isError` is true, a DevTools-side error has occurred, and `code` is set to an error code.
|
|
2925
|
+
*
|
|
2926
|
+
* If `isException` is set to true, a JavaScript error has occurred, and `value` is set to the string value of the thrown object.
|
|
2927
|
+
*/
|
|
2928
|
+
isException?: undefined;
|
|
2929
|
+
/** Set if the evaluated code produces an unhandled exception. */
|
|
2930
|
+
value?: undefined;
|
|
2931
|
+
}
|
|
2932
|
+
| {
|
|
2933
|
+
/**
|
|
2934
|
+
* Set if the error occurred on the DevTools side before the expression is evaluated.
|
|
2935
|
+
*
|
|
2936
|
+
* If `isError` is set to true, a DevTools-side error has occurred, and `code` is set to an error code.
|
|
2937
|
+
*
|
|
2938
|
+
* See the docs on `isException` for more details on parsing this object.
|
|
2939
|
+
*/
|
|
2940
|
+
isError?: undefined;
|
|
2941
|
+
/** Set if the error occurred on the DevTools side before the expression is evaluated. */
|
|
2942
|
+
code?: undefined;
|
|
2943
|
+
/** Set if the error occurred on the DevTools side before the expression is evaluated. */
|
|
2944
|
+
description?: undefined;
|
|
2945
|
+
/** Set if the error occurred on the DevTools side before the expression is evaluated, contains the array of the values that may be substituted into the description string to provide more information about the cause of the error. */
|
|
2946
|
+
details?: undefined;
|
|
2947
|
+
/**
|
|
2948
|
+
* Set if the evaluated code produces an unhandled exception.
|
|
2949
|
+
*
|
|
2950
|
+
* If `isException` is non-null but not true, and `isError` is true, a DevTools-side error has occurred, and `code` is set to an error code.
|
|
2951
|
+
*
|
|
2952
|
+
* If `isException` is set to true, a JavaScript error has occurred, and `value` is set to the string value of the thrown object.
|
|
2953
|
+
*/
|
|
2954
|
+
isException: true;
|
|
2955
|
+
/** Set if the evaluated code produces an unhandled exception. */
|
|
2956
|
+
value: string;
|
|
2957
|
+
};
|
|
2919
2958
|
|
|
2920
2959
|
/** The ID of the tab being inspected. This ID may be used with {@link chrome.tabs} API. */
|
|
2921
2960
|
const tabId: number;
|
|
@@ -2935,15 +2974,23 @@ declare namespace chrome {
|
|
|
2935
2974
|
function eval<T = { [key: string]: unknown }>(
|
|
2936
2975
|
expression: string,
|
|
2937
2976
|
options?: EvalOptions,
|
|
2938
|
-
): Promise<
|
|
2977
|
+
): Promise<T>;
|
|
2939
2978
|
function eval<T = { [key: string]: unknown }>(
|
|
2940
2979
|
expression: string,
|
|
2941
|
-
callback
|
|
2980
|
+
callback: (
|
|
2981
|
+
...args:
|
|
2982
|
+
| [result: T, exceptionInfo: undefined]
|
|
2983
|
+
| [result: undefined, exceptionInfo: EvaluationExceptionInfo]
|
|
2984
|
+
) => void,
|
|
2942
2985
|
): void;
|
|
2943
2986
|
function eval<T = { [key: string]: unknown }>(
|
|
2944
2987
|
expression: string,
|
|
2945
2988
|
options: EvalOptions | undefined,
|
|
2946
|
-
callback
|
|
2989
|
+
callback: (
|
|
2990
|
+
...args:
|
|
2991
|
+
| [result: T, exceptionInfo: undefined]
|
|
2992
|
+
| [result: undefined, exceptionInfo: EvaluationExceptionInfo]
|
|
2993
|
+
) => void,
|
|
2947
2994
|
): void;
|
|
2948
2995
|
|
|
2949
2996
|
/**
|
chrome/package.json
CHANGED
|
@@ -1,50 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chrome",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "TypeScript definitions for chrome",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
8
|
-
{
|
|
9
|
-
"name": "Matthew Kimber",
|
|
10
|
-
"githubUsername": "matthewkimber",
|
|
11
|
-
"url": "https://github.com/matthewkimber"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"name": "otiai10",
|
|
15
|
-
"githubUsername": "otiai10",
|
|
16
|
-
"url": "https://github.com/otiai10"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "sreimer15",
|
|
20
|
-
"githubUsername": "sreimer15",
|
|
21
|
-
"url": "https://github.com/sreimer15"
|
|
22
|
-
},
|
|
23
8
|
{
|
|
24
9
|
"name": "MatCarlson",
|
|
25
10
|
"githubUsername": "MatCarlson",
|
|
26
11
|
"url": "https://github.com/MatCarlson"
|
|
27
12
|
},
|
|
28
|
-
{
|
|
29
|
-
"name": "ekinsol",
|
|
30
|
-
"githubUsername": "ekinsol",
|
|
31
|
-
"url": "https://github.com/ekinsol"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "Brian Wilson",
|
|
35
|
-
"githubUsername": "echoabstract",
|
|
36
|
-
"url": "https://github.com/echoabstract"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "Sebastiaan Pasma",
|
|
40
|
-
"githubUsername": "spasma",
|
|
41
|
-
"url": "https://github.com/spasma"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "bdbai",
|
|
45
|
-
"githubUsername": "bdbai",
|
|
46
|
-
"url": "https://github.com/bdbai"
|
|
47
|
-
},
|
|
48
13
|
{
|
|
49
14
|
"name": "Jason Xian",
|
|
50
15
|
"githubUsername": "JasonXian",
|
|
@@ -55,11 +20,6 @@
|
|
|
55
20
|
"githubUsername": "usertim",
|
|
56
21
|
"url": "https://github.com/usertim"
|
|
57
22
|
},
|
|
58
|
-
{
|
|
59
|
-
"name": "Idan Zeierman",
|
|
60
|
-
"githubUsername": "idan315",
|
|
61
|
-
"url": "https://github.com/idan315"
|
|
62
|
-
},
|
|
63
23
|
{
|
|
64
24
|
"name": "Nicolas Rodriguez",
|
|
65
25
|
"githubUsername": "nicolas377",
|
|
@@ -94,6 +54,6 @@
|
|
|
94
54
|
"@types/har-format": "*"
|
|
95
55
|
},
|
|
96
56
|
"peerDependencies": {},
|
|
97
|
-
"typesPublisherContentHash": "
|
|
57
|
+
"typesPublisherContentHash": "f5961bea7501409c00f4d057d324fcadcefdc9adee1b3d33f0dad9cca1597b91",
|
|
98
58
|
"typeScriptVersion": "5.6"
|
|
99
59
|
}
|