@types/chrome 0.0.209 → 0.0.211
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +1 -1
- chrome/index.d.ts +215 -116
- 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: Wed,
|
11
|
+
* Last updated: Wed, 01 Feb 2023 20:32:42 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
@@ -2119,7 +2119,7 @@ declare module chrome {
|
|
2119
2119
|
* @param requiredVersion Required debugging protocol version ("0.1"). One can only attach to the debuggee with matching major version and greater or equal minor version. List of the protocol versions can be obtained in the documentation pages.
|
2120
2120
|
* @return The `attach` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
|
2121
2121
|
*/
|
2122
|
-
|
2122
|
+
export function attach(target: Debuggee, requiredVersion: string): Promise<void>;
|
2123
2123
|
/**
|
2124
2124
|
* Attaches debugger to the given target.
|
2125
2125
|
* @param target Debugging target to which you want to attach.
|
@@ -3046,7 +3046,7 @@ declare namespace chrome.downloads {
|
|
3046
3046
|
|
3047
3047
|
export interface DownloadDeterminingFilenameEvent
|
3048
3048
|
extends chrome.events.Event<
|
3049
|
-
|
3049
|
+
(downloadItem: DownloadItem, suggest: (suggestion?: DownloadFilenameSuggestion) => void) => void
|
3050
3050
|
> { }
|
3051
3051
|
|
3052
3052
|
/**
|
@@ -3580,8 +3580,8 @@ declare namespace chrome.extension {
|
|
3580
3580
|
|
3581
3581
|
export interface OnRequestEvent
|
3582
3582
|
extends chrome.events.Event<
|
3583
|
-
|
3584
|
-
|
3583
|
+
| ((request: any, sender: runtime.MessageSender, sendResponse: (response: any) => void) => void)
|
3584
|
+
| ((sender: runtime.MessageSender, sendResponse: (response: any) => void) => void)
|
3585
3585
|
> { }
|
3586
3586
|
|
3587
3587
|
/**
|
@@ -3954,115 +3954,115 @@ declare namespace chrome.fileSystemProvider {
|
|
3954
3954
|
|
3955
3955
|
export interface RequestedEvent
|
3956
3956
|
extends chrome.events.Event<
|
3957
|
-
|
3957
|
+
(options: RequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void
|
3958
3958
|
> { }
|
3959
3959
|
|
3960
3960
|
export interface MetadataRequestedEvent
|
3961
3961
|
extends chrome.events.Event<
|
3962
|
-
|
3963
|
-
|
3964
|
-
|
3965
|
-
|
3966
|
-
|
3962
|
+
(
|
3963
|
+
options: MetadataRequestedEventOptions,
|
3964
|
+
successCallback: (metadata: EntryMetadata) => void,
|
3965
|
+
errorCallback: (error: string) => void,
|
3966
|
+
) => void
|
3967
3967
|
> { }
|
3968
3968
|
|
3969
3969
|
export interface DirectoryPathRequestedEvent
|
3970
3970
|
extends chrome.events.Event<
|
3971
|
-
|
3972
|
-
|
3973
|
-
|
3974
|
-
|
3975
|
-
|
3971
|
+
(
|
3972
|
+
options: DirectoryPathRequestedEventOptions,
|
3973
|
+
successCallback: (entries: EntryMetadata[], hasMore: boolean) => void,
|
3974
|
+
errorCallback: (error: string) => void,
|
3975
|
+
) => void
|
3976
3976
|
> { }
|
3977
3977
|
|
3978
3978
|
export interface OpenFileRequestedEvent
|
3979
3979
|
extends chrome.events.Event<
|
3980
|
-
|
3981
|
-
|
3982
|
-
|
3983
|
-
|
3984
|
-
|
3980
|
+
(
|
3981
|
+
options: OpenFileRequestedEventOptions,
|
3982
|
+
successCallback: Function,
|
3983
|
+
errorCallback: (error: string) => void,
|
3984
|
+
) => void
|
3985
3985
|
> { }
|
3986
3986
|
|
3987
3987
|
export interface OpenedFileRequestedEvent
|
3988
3988
|
extends chrome.events.Event<
|
3989
|
-
|
3990
|
-
|
3991
|
-
|
3992
|
-
|
3993
|
-
|
3989
|
+
(
|
3990
|
+
options: OpenedFileRequestedEventOptions,
|
3991
|
+
successCallback: Function,
|
3992
|
+
errorCallback: (error: string) => void,
|
3993
|
+
) => void
|
3994
3994
|
> { }
|
3995
3995
|
|
3996
3996
|
export interface OpenedFileOffsetRequestedEvent
|
3997
3997
|
extends chrome.events.Event<
|
3998
|
-
|
3999
|
-
|
4000
|
-
|
4001
|
-
|
4002
|
-
|
3998
|
+
(
|
3999
|
+
options: OpenedFileOffsetRequestedEventOptions,
|
4000
|
+
successCallback: (data: ArrayBuffer, hasMore: boolean) => void,
|
4001
|
+
errorCallback: (error: string) => void,
|
4002
|
+
) => void
|
4003
4003
|
> { }
|
4004
4004
|
|
4005
4005
|
export interface DirectoryPathRecursiveRequestedEvent
|
4006
4006
|
extends chrome.events.Event<
|
4007
|
-
|
4008
|
-
|
4009
|
-
|
4010
|
-
|
4011
|
-
|
4007
|
+
(
|
4008
|
+
options: DirectoryPathRecursiveRequestedEventOptions,
|
4009
|
+
successCallback: Function,
|
4010
|
+
errorCallback: (error: string) => void,
|
4011
|
+
) => void
|
4012
4012
|
> { }
|
4013
4013
|
|
4014
4014
|
export interface EntryPathRecursiveRequestedEvent
|
4015
4015
|
extends chrome.events.Event<
|
4016
|
-
|
4017
|
-
|
4018
|
-
|
4019
|
-
|
4020
|
-
|
4016
|
+
(
|
4017
|
+
options: EntryPathRecursiveRequestedEventOptions,
|
4018
|
+
successCallback: Function,
|
4019
|
+
errorCallback: (error: string) => void,
|
4020
|
+
) => void
|
4021
4021
|
> { }
|
4022
4022
|
|
4023
4023
|
export interface FilePathRequestedEvent
|
4024
4024
|
extends chrome.events.Event<
|
4025
|
-
|
4026
|
-
|
4027
|
-
|
4028
|
-
|
4029
|
-
|
4025
|
+
(
|
4026
|
+
options: FilePathRequestedEventOptions,
|
4027
|
+
successCallback: Function,
|
4028
|
+
errorCallback: (error: string) => void,
|
4029
|
+
) => void
|
4030
4030
|
> { }
|
4031
4031
|
|
4032
4032
|
export interface SourceTargetPathRequestedEvent
|
4033
4033
|
extends chrome.events.Event<
|
4034
|
-
|
4035
|
-
|
4036
|
-
|
4037
|
-
|
4038
|
-
|
4034
|
+
(
|
4035
|
+
options: SourceTargetPathRequestedEventOptions,
|
4036
|
+
successCallback: Function,
|
4037
|
+
errorCallback: (error: string) => void,
|
4038
|
+
) => void
|
4039
4039
|
> { }
|
4040
4040
|
|
4041
4041
|
export interface FilePathLengthRequestedEvent
|
4042
4042
|
extends chrome.events.Event<
|
4043
|
-
|
4044
|
-
|
4045
|
-
|
4046
|
-
|
4047
|
-
|
4043
|
+
(
|
4044
|
+
options: FilePathLengthRequestedEventOptions,
|
4045
|
+
successCallback: Function,
|
4046
|
+
errorCallback: (error: string) => void,
|
4047
|
+
) => void
|
4048
4048
|
> { }
|
4049
4049
|
|
4050
4050
|
export interface OpenedFileIoRequestedEvent
|
4051
4051
|
extends chrome.events.Event<
|
4052
|
-
|
4053
|
-
|
4054
|
-
|
4055
|
-
|
4056
|
-
|
4052
|
+
(
|
4053
|
+
options: OpenedFileIoRequestedEventOptions,
|
4054
|
+
successCallback: Function,
|
4055
|
+
errorCallback: (error: string) => void,
|
4056
|
+
) => void
|
4057
4057
|
> { }
|
4058
4058
|
|
4059
4059
|
export interface OperationRequestedEvent
|
4060
4060
|
extends chrome.events.Event<
|
4061
|
-
|
4062
|
-
|
4063
|
-
|
4064
|
-
|
4065
|
-
|
4061
|
+
(
|
4062
|
+
options: OperationRequestedEventOptions,
|
4063
|
+
successCallback: Function,
|
4064
|
+
errorCallback: (error: string) => void,
|
4065
|
+
) => void
|
4066
4066
|
> { }
|
4067
4067
|
|
4068
4068
|
export interface OptionlessRequestedEvent
|
@@ -4188,12 +4188,12 @@ declare namespace chrome.fontSettings {
|
|
4188
4188
|
export interface FontDetails {
|
4189
4189
|
/** The generic font family for the font. */
|
4190
4190
|
genericFamily:
|
4191
|
-
|
4192
|
-
|
4193
|
-
|
4194
|
-
|
4195
|
-
|
4196
|
-
|
4191
|
+
| 'cursive'
|
4192
|
+
| 'fantasy'
|
4193
|
+
| 'fixed'
|
4194
|
+
| 'sansserif'
|
4195
|
+
| 'serif'
|
4196
|
+
| 'standard';
|
4197
4197
|
/** Optional. The script for the font. If omitted, the global script font setting is affected. */
|
4198
4198
|
script?: string | undefined;
|
4199
4199
|
}
|
@@ -6001,6 +6001,85 @@ declare namespace chrome.notifications {
|
|
6001
6001
|
export function getPermissionLevel(callback: (level: string) => void): void;
|
6002
6002
|
}
|
6003
6003
|
|
6004
|
+
////////////////////
|
6005
|
+
// Offscreen
|
6006
|
+
////////////////////
|
6007
|
+
/**
|
6008
|
+
* Use the offscreen API to create and manage offscreen documents.
|
6009
|
+
* Availability: @since Chrome 109. Manifest v3.
|
6010
|
+
* Permissions: "offscreen"
|
6011
|
+
*/
|
6012
|
+
declare namespace chrome.offscreen {
|
6013
|
+
/** The reason(s) the extension is creating the offscreen document. */
|
6014
|
+
export enum Reason {
|
6015
|
+
/** A reason used for testing purposes only. */
|
6016
|
+
TESTING,
|
6017
|
+
/** The offscreen document is responsible for playing audio. */
|
6018
|
+
AUDIO_PLAYBACK,
|
6019
|
+
/** The offscreen document needs to embed and script an iframe in order to modify the iframe's content. */
|
6020
|
+
IFRAME_SCRIPTING,
|
6021
|
+
/** The offscreen document needs to embed an iframe and scrape its DOM to extract information. */
|
6022
|
+
DOM_SCRAPING,
|
6023
|
+
/** The offscreen document needs to interact with Blob objects (including URL.createObjectURL()). */
|
6024
|
+
BLOBS,
|
6025
|
+
/** The offscreen document needs to use the DOMParser API. */
|
6026
|
+
DOM_PARSER,
|
6027
|
+
/** The offscreen document needs to interact with media streams from user media (e.g. getUserMedia()). */
|
6028
|
+
USER_MEDIA,
|
6029
|
+
/** The offscreen document needs to interact with media streams from display media (e.g. getDisplayMedia()). */
|
6030
|
+
DISPLAY_MEDIA,
|
6031
|
+
/** The offscreen document needs to use WebRTC APIs. */
|
6032
|
+
WEB_RTC,
|
6033
|
+
/** The offscreen document needs to interact with the clipboard APIs(e.g. Navigator.clipboard). */
|
6034
|
+
CLIPBOARD
|
6035
|
+
}
|
6036
|
+
|
6037
|
+
/** The parameters describing the offscreen document to create. */
|
6038
|
+
export interface CreateParameters {
|
6039
|
+
/** The reason(s) the extension is creating the offscreen document. */
|
6040
|
+
reasons: Reason[];
|
6041
|
+
/** The (relative) URL to load in the document. */
|
6042
|
+
url: string;
|
6043
|
+
/** A developer-provided string that explains, in more detail, the need for the background context. The user agent _may_ use this in display to the user. */
|
6044
|
+
justification: string;
|
6045
|
+
}
|
6046
|
+
|
6047
|
+
/**
|
6048
|
+
* Creates a new offscreen document for the extension.
|
6049
|
+
* @param parameters The parameters describing the offscreen document to create.
|
6050
|
+
* @return The `createDocument` method provides its result via callback or returned as a `Promise` (MV3 only).
|
6051
|
+
*/
|
6052
|
+
export function createDocument(parameters: CreateParameters): Promise<void>;
|
6053
|
+
/**
|
6054
|
+
* Creates a new offscreen document for the extension.
|
6055
|
+
* @param parameters The parameters describing the offscreen document to create.
|
6056
|
+
* @param callback Invoked when the offscreen document is created and has completed its initial page load.
|
6057
|
+
*/
|
6058
|
+
export function createDocument(parameters: CreateParameters, callback: () => void): void;
|
6059
|
+
|
6060
|
+
/**
|
6061
|
+
* Closes the currently-open offscreen document for the extension.
|
6062
|
+
* @return The `closeDocument` method provides its result via callback or returned as a `Promise` (MV3 only).
|
6063
|
+
*/
|
6064
|
+
export function closeDocument(): Promise<void>;
|
6065
|
+
/**
|
6066
|
+
* Closes the currently-open offscreen document for the extension.
|
6067
|
+
* @param callback Invoked when the offscreen document has been closed.
|
6068
|
+
*/
|
6069
|
+
export function closeDocument(callback: () => void): void;
|
6070
|
+
|
6071
|
+
/**
|
6072
|
+
* Determines whether the extension has an active document.
|
6073
|
+
* @return The `hasDocument` method provides its result via callback or returned as a `Promise` (MV3 only).
|
6074
|
+
*/
|
6075
|
+
export function hasDocument(): Promise<boolean>;
|
6076
|
+
/**
|
6077
|
+
* Determines whether the extension has an active document.
|
6078
|
+
* @param callback Invoked with the result of whether the extension has an active offscreen document.
|
6079
|
+
*/
|
6080
|
+
export function hasDocument(callback: (result: boolean) => void): void;
|
6081
|
+
}
|
6082
|
+
|
6004
6083
|
////////////////////
|
6005
6084
|
// Omnibox
|
6006
6085
|
////////////////////
|
@@ -6224,6 +6303,11 @@ declare namespace chrome.permissions {
|
|
6224
6303
|
addListener(callback: (permissions: Permissions) => void): void;
|
6225
6304
|
}
|
6226
6305
|
|
6306
|
+
/**
|
6307
|
+
* Checks if the extension has the specified permissions.
|
6308
|
+
* @return A Promise that resolves with boolean: True if the extension has the specified permissions.
|
6309
|
+
*/
|
6310
|
+
export function contains(permissions: Permissions): Promise<boolean>;
|
6227
6311
|
/**
|
6228
6312
|
* Checks if the extension has the specified permissions.
|
6229
6313
|
* @param callback The callback parameter should be a function that looks like this:
|
@@ -6231,6 +6315,11 @@ declare namespace chrome.permissions {
|
|
6231
6315
|
* Parameter result: True if the extension has the specified permissions.
|
6232
6316
|
*/
|
6233
6317
|
export function contains(permissions: Permissions, callback: (result: boolean) => void): void;
|
6318
|
+
/**
|
6319
|
+
* Gets the extension's current set of permissions.
|
6320
|
+
* @return A Promise that resolves with Permissions object describing the extension's active permissions.
|
6321
|
+
*/
|
6322
|
+
export function getAll(): Promise<Permissions>;
|
6234
6323
|
/**
|
6235
6324
|
* Gets the extension's current set of permissions.
|
6236
6325
|
* @param callback The callback parameter should be a function that looks like this:
|
@@ -6238,6 +6327,11 @@ declare namespace chrome.permissions {
|
|
6238
6327
|
* Parameter permissions: The extension's active permissions.
|
6239
6328
|
*/
|
6240
6329
|
export function getAll(callback: (permissions: Permissions) => void): void;
|
6330
|
+
/**
|
6331
|
+
* Requests access to the specified permissions. These permissions must be defined in the optional_permissions field of the manifest. If there are any problems requesting the permissions, runtime.lastError will be set.
|
6332
|
+
* @return A Promise that resolves with boolean: True if the user granted the specified permissions.
|
6333
|
+
*/
|
6334
|
+
export function request(permissions: Permissions): Promise<boolean>;
|
6241
6335
|
/**
|
6242
6336
|
* Requests access to the specified permissions. These permissions must be defined in the optional_permissions field of the manifest. If there are any problems requesting the permissions, runtime.lastError will be set.
|
6243
6337
|
* @param callback If you specify the callback parameter, it should be a function that looks like this:
|
@@ -6245,6 +6339,11 @@ declare namespace chrome.permissions {
|
|
6245
6339
|
* Parameter granted: True if the user granted the specified permissions.
|
6246
6340
|
*/
|
6247
6341
|
export function request(permissions: Permissions, callback?: (granted: boolean) => void): void;
|
6342
|
+
/**
|
6343
|
+
* Removes access to the specified permissions. If there are any problems removing the permissions, runtime.lastError will be set.
|
6344
|
+
* @return A Promise that resolves with boolean: True if the permissions were removed.
|
6345
|
+
*/
|
6346
|
+
export function remove(permissions: Permissions): Promise<boolean>;
|
6248
6347
|
/**
|
6249
6348
|
* Removes access to the specified permissions. If there are any problems removing the permissions, runtime.lastError will be set.
|
6250
6349
|
* @param callback If you specify the callback parameter, it should be a function that looks like this:
|
@@ -6424,7 +6523,7 @@ declare namespace chrome.printerProvider {
|
|
6424
6523
|
|
6425
6524
|
export interface CapabilityRequestedEvent
|
6426
6525
|
extends chrome.events.Event<
|
6427
|
-
|
6526
|
+
(printerId: string, resultCallback: (capabilities: PrinterCapabilities) => void) => void
|
6428
6527
|
> { }
|
6429
6528
|
|
6430
6529
|
export interface PrintRequestedEvent
|
@@ -7051,7 +7150,7 @@ declare namespace chrome.runtime {
|
|
7051
7150
|
|
7052
7151
|
export interface ExtensionMessageEvent
|
7053
7152
|
extends chrome.events.Event<
|
7054
|
-
|
7153
|
+
(message: any, sender: MessageSender, sendResponse: (response?: any) => void) => void
|
7055
7154
|
> { }
|
7056
7155
|
|
7057
7156
|
export interface ExtensionConnectEvent extends chrome.events.Event<(port: Port) => void> { }
|
@@ -7337,12 +7436,12 @@ declare namespace chrome.runtime {
|
|
7337
7436
|
|
7338
7437
|
// Optional
|
7339
7438
|
background?:
|
7340
|
-
|
7341
|
-
|
7342
|
-
|
7343
|
-
|
7344
|
-
|
7345
|
-
|
7439
|
+
| {
|
7440
|
+
scripts?: string[] | undefined;
|
7441
|
+
page?: string | undefined;
|
7442
|
+
persistent?: boolean | undefined;
|
7443
|
+
}
|
7444
|
+
| undefined;
|
7346
7445
|
content_security_policy?: string | undefined;
|
7347
7446
|
optional_permissions?: string[] | undefined;
|
7348
7447
|
permissions?: string[] | undefined;
|
@@ -7356,11 +7455,11 @@ declare namespace chrome.runtime {
|
|
7356
7455
|
// Optional
|
7357
7456
|
action?: ManifestAction | undefined;
|
7358
7457
|
background?:
|
7359
|
-
|
7360
|
-
|
7361
|
-
|
7362
|
-
|
7363
|
-
|
7458
|
+
| {
|
7459
|
+
service_worker: string;
|
7460
|
+
type?: 'module'; // If the service worker uses ES modules
|
7461
|
+
}
|
7462
|
+
| undefined;
|
7364
7463
|
content_security_policy?: {
|
7365
7464
|
extension_pages?: string;
|
7366
7465
|
sandbox?: string;
|
@@ -7657,7 +7756,7 @@ declare namespace chrome.scripting {
|
|
7657
7756
|
} | ({
|
7658
7757
|
/* A JavaScript function to inject. This function will be serialized, and then deserialized for injection. This means that any bound parameters and execution context will be lost. Exactly one of files and function must be specified. */
|
7659
7758
|
func: () => Result;
|
7660
|
-
}
|
7759
|
+
} | {
|
7661
7760
|
/* A JavaScript function to inject. This function will be serialized, and then deserialized for injection. This means that any bound parameters and execution context will be lost. Exactly one of files and function must be specified. */
|
7662
7761
|
func: (...args: Args) => Result;
|
7663
7762
|
/* The arguments to carry into a provided function. This is only valid if the func parameter is specified. These arguments must be JSON-serializable. */
|
@@ -8052,7 +8151,7 @@ declare namespace chrome.storage {
|
|
8052
8151
|
}
|
8053
8152
|
|
8054
8153
|
export interface StorageAreaChangedEvent
|
8055
|
-
|
8154
|
+
extends chrome.events.Event<(changes: { [key: string]: StorageChange }) => void> { }
|
8056
8155
|
|
8057
8156
|
type AreaName = keyof Pick<typeof chrome.storage, 'sync' | 'local' | 'managed' | 'session'>;
|
8058
8157
|
export interface StorageChangedEvent
|
@@ -10131,7 +10230,7 @@ declare namespace chrome.tabs {
|
|
10131
10230
|
* Permissions: "tabGroups"
|
10132
10231
|
* @since Chrome 89. Manifest V3 and above.
|
10133
10232
|
*/
|
10134
|
-
|
10233
|
+
declare namespace chrome.tabGroups {
|
10135
10234
|
|
10136
10235
|
/** An ID that represents the absence of a group. */
|
10137
10236
|
export var TAB_GROUP_ID_NONE: -1;
|
@@ -10435,7 +10534,7 @@ declare namespace chrome.ttsEngine {
|
|
10435
10534
|
|
10436
10535
|
export interface TtsEngineSpeakEvent
|
10437
10536
|
extends chrome.events.Event<
|
10438
|
-
|
10537
|
+
(utterance: string, options: SpeakOptions, sendTtsEvent: (event: chrome.tts.TtsEvent) => void) => void
|
10439
10538
|
> { }
|
10440
10539
|
|
10441
10540
|
/** Called when the user makes a call to tts.speak() and one of the voices from this extension's manifest is the first to match the options object. */
|
@@ -11115,7 +11214,7 @@ declare namespace chrome.webRequest {
|
|
11115
11214
|
|
11116
11215
|
export interface WebAuthenticationChallengeEvent
|
11117
11216
|
extends chrome.events.EventWithRequiredFilterInAddListener<
|
11118
|
-
|
11217
|
+
(details: WebAuthenticationChallengeDetails, callback?: (response: BlockingResponse) => void) => void
|
11119
11218
|
> {
|
11120
11219
|
addListener(
|
11121
11220
|
callback: (
|
@@ -11412,18 +11511,18 @@ declare namespace chrome.windows {
|
|
11412
11511
|
|
11413
11512
|
export interface WindowIdEvent
|
11414
11513
|
extends chrome.events.Event<(windowId: number) => void> {
|
11415
|
-
|
11416
|
-
|
11417
|
-
|
11418
|
-
|
11514
|
+
addListener(
|
11515
|
+
callback: (windowId: number) => void,
|
11516
|
+
filters?: WindowEventFilter,
|
11517
|
+
): void;
|
11419
11518
|
}
|
11420
11519
|
|
11421
11520
|
export interface WindowReferenceEvent
|
11422
11521
|
extends chrome.events.Event<(window: Window) => void> {
|
11423
|
-
|
11424
|
-
|
11425
|
-
|
11426
|
-
|
11522
|
+
addListener(
|
11523
|
+
callback: (window: Window) => void,
|
11524
|
+
filters?: WindowEventFilter,
|
11525
|
+
): void;
|
11427
11526
|
}
|
11428
11527
|
|
11429
11528
|
/**
|
@@ -11935,25 +12034,25 @@ declare namespace chrome.declarativeNetRequest {
|
|
11935
12034
|
*/
|
11936
12035
|
urlFilter?: string | undefined;
|
11937
12036
|
} & (
|
11938
|
-
|
11939
|
-
|
11940
|
-
|
11941
|
-
|
11942
|
-
|
11943
|
-
|
11944
|
-
|
11945
|
-
|
11946
|
-
|
11947
|
-
|
11948
|
-
|
11949
|
-
|
11950
|
-
|
11951
|
-
|
11952
|
-
|
11953
|
-
|
11954
|
-
|
11955
|
-
|
11956
|
-
|
12037
|
+
| {
|
12038
|
+
/**
|
12039
|
+
* List of resource types which the rule won't match.
|
12040
|
+
* Only one of {@link chrome.declarativeNetRequest.RuleCondition.resourceTypes}
|
12041
|
+
* and {@link chrome.declarativeNetRequest.RuleCondition.excludedResourceTypes} should be specified.
|
12042
|
+
* If neither of them is specified, all resource types except "main_frame" are blocked.
|
12043
|
+
*/
|
12044
|
+
excludedResourceTypes?: ResourceType[] | undefined;
|
12045
|
+
}
|
12046
|
+
| {
|
12047
|
+
/**
|
12048
|
+
* List of resource types which the rule can match.
|
12049
|
+
* An empty list is not allowed.
|
12050
|
+
*
|
12051
|
+
* Note: this must be specified for allowAllRequests rules and may only include the sub_frame and main_frame resource types.
|
12052
|
+
*/
|
12053
|
+
resourceTypes?: ResourceType[] | undefined;
|
12054
|
+
}
|
12055
|
+
);
|
11957
12056
|
|
11958
12057
|
export interface MatchedRule {
|
11959
12058
|
/** A matching rule's ID. */
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.211",
|
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",
|
@@ -88,6 +88,6 @@
|
|
88
88
|
"@types/filesystem": "*",
|
89
89
|
"@types/har-format": "*"
|
90
90
|
},
|
91
|
-
"typesPublisherContentHash": "
|
91
|
+
"typesPublisherContentHash": "23719af7372ea8b3372a83987789fd3e0520ecad7ce7427143568da76aa3fb4b",
|
92
92
|
"typeScriptVersion": "4.2"
|
93
93
|
}
|