@types/chrome 0.0.319 → 0.0.320
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 +1 -1
- chrome/chrome-cast/index.d.ts +25 -25
- chrome/index.d.ts +28 -28
- 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:
|
11
|
+
* Last updated: Mon, 05 May 2025 21:02: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
|
chrome/chrome-cast/index.d.ts
CHANGED
@@ -110,7 +110,7 @@ declare namespace chrome {
|
|
110
110
|
*/
|
111
111
|
export function initialize(
|
112
112
|
apiConfig: chrome.cast.ApiConfig,
|
113
|
-
successCallback:
|
113
|
+
successCallback: () => void,
|
114
114
|
errorCallback: (error: chrome.cast.Error) => void,
|
115
115
|
): void;
|
116
116
|
|
@@ -158,7 +158,7 @@ declare namespace chrome {
|
|
158
158
|
*/
|
159
159
|
export function setCustomReceivers(
|
160
160
|
receivers: chrome.cast.Receiver[],
|
161
|
-
successCallback:
|
161
|
+
successCallback: () => void,
|
162
162
|
errorCallback: (error: chrome.cast.Error) => void,
|
163
163
|
): void;
|
164
164
|
|
@@ -169,7 +169,7 @@ declare namespace chrome {
|
|
169
169
|
*/
|
170
170
|
export function setReceiverDisplayStatus(
|
171
171
|
receiver: chrome.cast.Receiver,
|
172
|
-
successCallback:
|
172
|
+
successCallback: () => void,
|
173
173
|
errorCallback: (error: chrome.cast.Error) => void,
|
174
174
|
): void;
|
175
175
|
|
@@ -292,7 +292,7 @@ declare namespace chrome {
|
|
292
292
|
*/
|
293
293
|
setReceiverVolumeLevel(
|
294
294
|
newLevel: number,
|
295
|
-
successCallback:
|
295
|
+
successCallback: () => void,
|
296
296
|
errorCallback: (error: chrome.cast.Error) => void,
|
297
297
|
): void;
|
298
298
|
|
@@ -303,7 +303,7 @@ declare namespace chrome {
|
|
303
303
|
*/
|
304
304
|
setReceiverMuted(
|
305
305
|
muted: boolean,
|
306
|
-
successCallback:
|
306
|
+
successCallback: () => void,
|
307
307
|
errorCallback: (error: chrome.cast.Error) => void,
|
308
308
|
): void;
|
309
309
|
|
@@ -311,13 +311,13 @@ declare namespace chrome {
|
|
311
311
|
* @param successCallback
|
312
312
|
* @param errorCallback
|
313
313
|
*/
|
314
|
-
leave(successCallback:
|
314
|
+
leave(successCallback: () => void, errorCallback: (error: chrome.cast.Error) => void): void;
|
315
315
|
|
316
316
|
/**
|
317
317
|
* @param successCallback
|
318
318
|
* @param errorCallback
|
319
319
|
*/
|
320
|
-
stop(successCallback:
|
320
|
+
stop(successCallback: () => void, errorCallback: (error: chrome.cast.Error) => void): void;
|
321
321
|
|
322
322
|
/**
|
323
323
|
* @param namespace
|
@@ -328,7 +328,7 @@ declare namespace chrome {
|
|
328
328
|
sendMessage(
|
329
329
|
namespace: string,
|
330
330
|
message: string | object,
|
331
|
-
successCallback:
|
331
|
+
successCallback: () => void,
|
332
332
|
errorCallback: (error: chrome.cast.Error) => void,
|
333
333
|
): void;
|
334
334
|
|
@@ -885,7 +885,7 @@ declare namespace chrome {
|
|
885
885
|
*/
|
886
886
|
getStatus(
|
887
887
|
getStatusRequest: chrome.cast.media.GetStatusRequest,
|
888
|
-
successCallback:
|
888
|
+
successCallback: () => void,
|
889
889
|
errorCallback: (error: chrome.cast.Error) => void,
|
890
890
|
): void;
|
891
891
|
|
@@ -896,7 +896,7 @@ declare namespace chrome {
|
|
896
896
|
*/
|
897
897
|
play(
|
898
898
|
playRequest: chrome.cast.media.PlayRequest,
|
899
|
-
successCallback:
|
899
|
+
successCallback: () => void,
|
900
900
|
errorCallback: (error: chrome.cast.Error) => void,
|
901
901
|
): void;
|
902
902
|
|
@@ -907,7 +907,7 @@ declare namespace chrome {
|
|
907
907
|
*/
|
908
908
|
pause(
|
909
909
|
pauseRequest: chrome.cast.media.PauseRequest,
|
910
|
-
successCallback:
|
910
|
+
successCallback: () => void,
|
911
911
|
errorCallback: (error: chrome.cast.Error) => void,
|
912
912
|
): void;
|
913
913
|
|
@@ -918,7 +918,7 @@ declare namespace chrome {
|
|
918
918
|
*/
|
919
919
|
seek(
|
920
920
|
seekRequest: chrome.cast.media.SeekRequest,
|
921
|
-
successCallback:
|
921
|
+
successCallback: () => void,
|
922
922
|
errorCallback: (error: chrome.cast.Error) => void,
|
923
923
|
): void;
|
924
924
|
|
@@ -929,7 +929,7 @@ declare namespace chrome {
|
|
929
929
|
*/
|
930
930
|
stop(
|
931
931
|
stopRequest: chrome.cast.media.StopRequest,
|
932
|
-
successCallback:
|
932
|
+
successCallback: () => void,
|
933
933
|
errorCallback: (error: chrome.cast.Error) => void,
|
934
934
|
): void;
|
935
935
|
|
@@ -940,7 +940,7 @@ declare namespace chrome {
|
|
940
940
|
*/
|
941
941
|
setVolume(
|
942
942
|
volumeRequest: chrome.cast.media.VolumeRequest,
|
943
|
-
successCallback:
|
943
|
+
successCallback: () => void,
|
944
944
|
errorCallback: (error: chrome.cast.Error) => void,
|
945
945
|
): void;
|
946
946
|
|
@@ -951,7 +951,7 @@ declare namespace chrome {
|
|
951
951
|
*/
|
952
952
|
editTracksInfo(
|
953
953
|
editTracksInfoRequest: chrome.cast.media.EditTracksInfoRequest,
|
954
|
-
successCallback:
|
954
|
+
successCallback: () => void,
|
955
955
|
errorCallback: (error: chrome.cast.Error) => void,
|
956
956
|
): void;
|
957
957
|
|
@@ -984,7 +984,7 @@ declare namespace chrome {
|
|
984
984
|
*/
|
985
985
|
queueAppendItem(
|
986
986
|
item: chrome.cast.media.QueueItem,
|
987
|
-
successCallback:
|
987
|
+
successCallback: () => void,
|
988
988
|
errorCallback: (error: chrome.cast.Error) => void,
|
989
989
|
): void;
|
990
990
|
|
@@ -995,7 +995,7 @@ declare namespace chrome {
|
|
995
995
|
*/
|
996
996
|
queueInsertItems(
|
997
997
|
queueInsertItemsRequest: chrome.cast.media.QueueInsertItemsRequest,
|
998
|
-
successCallback:
|
998
|
+
successCallback: () => void,
|
999
999
|
errorCallback: (error: chrome.cast.Error) => void,
|
1000
1000
|
): void;
|
1001
1001
|
|
@@ -1006,7 +1006,7 @@ declare namespace chrome {
|
|
1006
1006
|
*/
|
1007
1007
|
queueJumpToItem(
|
1008
1008
|
itemId: number,
|
1009
|
-
successCallback:
|
1009
|
+
successCallback: () => void,
|
1010
1010
|
errorCallback: (error: chrome.cast.Error) => void,
|
1011
1011
|
): void;
|
1012
1012
|
|
@@ -1019,7 +1019,7 @@ declare namespace chrome {
|
|
1019
1019
|
queueMoveItemToNewIndex(
|
1020
1020
|
itemId: number,
|
1021
1021
|
newIndex: number,
|
1022
|
-
successCallback:
|
1022
|
+
successCallback: () => void,
|
1023
1023
|
errorCallback: (error: chrome.cast.Error) => void,
|
1024
1024
|
): void;
|
1025
1025
|
|
@@ -1027,13 +1027,13 @@ declare namespace chrome {
|
|
1027
1027
|
* @param successCallback
|
1028
1028
|
* @param errorCallback
|
1029
1029
|
*/
|
1030
|
-
queueNext(successCallback:
|
1030
|
+
queueNext(successCallback: () => void, errorCallback: (error: chrome.cast.Error) => void): void;
|
1031
1031
|
|
1032
1032
|
/**
|
1033
1033
|
* @param successCallback
|
1034
1034
|
* @param errorCallback
|
1035
1035
|
*/
|
1036
|
-
queuePrev(successCallback:
|
1036
|
+
queuePrev(successCallback: () => void, errorCallback: (error: chrome.cast.Error) => void): void;
|
1037
1037
|
|
1038
1038
|
/**
|
1039
1039
|
* @param itemId
|
@@ -1042,7 +1042,7 @@ declare namespace chrome {
|
|
1042
1042
|
*/
|
1043
1043
|
queueRemoveItem(
|
1044
1044
|
itemId: number,
|
1045
|
-
successCallback:
|
1045
|
+
successCallback: () => void,
|
1046
1046
|
errorCallback: (error: chrome.cast.Error) => void,
|
1047
1047
|
): void;
|
1048
1048
|
|
@@ -1053,7 +1053,7 @@ declare namespace chrome {
|
|
1053
1053
|
*/
|
1054
1054
|
queueReorderItems(
|
1055
1055
|
queueReorderItemsRequest: chrome.cast.media.QueueReorderItemsRequest,
|
1056
|
-
successCallback:
|
1056
|
+
successCallback: () => void,
|
1057
1057
|
errorCallback: (error: chrome.cast.Error) => void,
|
1058
1058
|
): void;
|
1059
1059
|
|
@@ -1064,7 +1064,7 @@ declare namespace chrome {
|
|
1064
1064
|
*/
|
1065
1065
|
queueSetRepeatMode(
|
1066
1066
|
repeatMode: chrome.cast.media.RepeatMode,
|
1067
|
-
successCallback:
|
1067
|
+
successCallback: () => void,
|
1068
1068
|
errorCallback: (error: chrome.cast.Error) => void,
|
1069
1069
|
): void;
|
1070
1070
|
|
@@ -1075,7 +1075,7 @@ declare namespace chrome {
|
|
1075
1075
|
*/
|
1076
1076
|
queueUpdateItems(
|
1077
1077
|
queueUpdateItemsRequest: chrome.cast.media.QueueUpdateItemsRequest,
|
1078
|
-
successCallback:
|
1078
|
+
successCallback: () => void,
|
1079
1079
|
errorCallback: (error: chrome.cast.Error) => void,
|
1080
1080
|
): void;
|
1081
1081
|
}
|
chrome/index.d.ts
CHANGED
@@ -1180,7 +1180,7 @@ declare namespace chrome {
|
|
1180
1180
|
/**
|
1181
1181
|
* Sets the icon for the browser action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the path or the imageData property must be specified.
|
1182
1182
|
*/
|
1183
|
-
export function setIcon(details: TabIconDetails, callback?:
|
1183
|
+
export function setIcon(details: TabIconDetails, callback?: () => void): void;
|
1184
1184
|
|
1185
1185
|
/** Fired when a browser action icon is clicked. This event will not fire if the browser action has a popup. */
|
1186
1186
|
export var onClicked: BrowserClickedEvent;
|
@@ -2585,7 +2585,7 @@ declare namespace chrome {
|
|
2585
2585
|
filter: RequestCookie;
|
2586
2586
|
}
|
2587
2587
|
|
2588
|
-
export interface RequestedEvent extends chrome.events.Event<
|
2588
|
+
export interface RequestedEvent extends chrome.events.Event<() => void> {}
|
2589
2589
|
|
2590
2590
|
export var onRequest: RequestedEvent;
|
2591
2591
|
}
|
@@ -4291,7 +4291,7 @@ declare namespace chrome {
|
|
4291
4291
|
originAndPathMatches?: string | undefined;
|
4292
4292
|
}
|
4293
4293
|
|
4294
|
-
export interface Event<T extends
|
4294
|
+
export interface Event<T extends (...args: any) => void> {
|
4295
4295
|
/**
|
4296
4296
|
* Registers an event listener callback to an event.
|
4297
4297
|
* @param callback Called when an event occurs. The parameters of this function depend on the type of event.
|
@@ -5397,7 +5397,7 @@ declare namespace chrome {
|
|
5397
5397
|
/**
|
5398
5398
|
* Sets the default font size.
|
5399
5399
|
*/
|
5400
|
-
export function setDefaultFontSize(details: DefaultFontSizeDetails, callback:
|
5400
|
+
export function setDefaultFontSize(details: DefaultFontSizeDetails, callback: () => void): void;
|
5401
5401
|
/**
|
5402
5402
|
* Gets the font for a given script and generic font family.
|
5403
5403
|
* @return The `getFont` method provides its result via callback or returned as a `Promise` (MV3 only).
|
@@ -5439,7 +5439,7 @@ declare namespace chrome {
|
|
5439
5439
|
/**
|
5440
5440
|
* Sets the minimum font size.
|
5441
5441
|
*/
|
5442
|
-
export function setMinimumFontSize(details: SetFontSizeDetails, callback:
|
5442
|
+
export function setMinimumFontSize(details: SetFontSizeDetails, callback: () => void): void;
|
5443
5443
|
/**
|
5444
5444
|
* Gets the default size for fixed width fonts.
|
5445
5445
|
* @param details This parameter is currently unused.
|
@@ -5462,8 +5462,8 @@ declare namespace chrome {
|
|
5462
5462
|
* Clears the default font size set by this extension, if any.
|
5463
5463
|
* @param details This parameter is currently unused.
|
5464
5464
|
*/
|
5465
|
-
export function clearDefaultFontSize(callback:
|
5466
|
-
export function clearDefaultFontSize(details: Object, callback:
|
5465
|
+
export function clearDefaultFontSize(callback: () => void): void;
|
5466
|
+
export function clearDefaultFontSize(details: Object, callback: () => void): void;
|
5467
5467
|
/**
|
5468
5468
|
* Sets the default size for fixed width fonts.
|
5469
5469
|
* @return The `setDefaultFixedFontSize` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
|
@@ -5472,7 +5472,7 @@ declare namespace chrome {
|
|
5472
5472
|
/**
|
5473
5473
|
* Sets the default size for fixed width fonts.
|
5474
5474
|
*/
|
5475
|
-
export function setDefaultFixedFontSize(details: SetFontSizeDetails, callback:
|
5475
|
+
export function setDefaultFixedFontSize(details: SetFontSizeDetails, callback: () => void): void;
|
5476
5476
|
/**
|
5477
5477
|
* Clears the font set by this extension, if any.
|
5478
5478
|
* @return The `clearFont` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
|
@@ -5481,7 +5481,7 @@ declare namespace chrome {
|
|
5481
5481
|
/**
|
5482
5482
|
* Clears the font set by this extension, if any.
|
5483
5483
|
*/
|
5484
|
-
export function clearFont(details: FontDetails, callback:
|
5484
|
+
export function clearFont(details: FontDetails, callback: () => void): void;
|
5485
5485
|
/**
|
5486
5486
|
* Sets the font for a given script and generic font family.
|
5487
5487
|
* @return The `setFont` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
|
@@ -5490,7 +5490,7 @@ declare namespace chrome {
|
|
5490
5490
|
/**
|
5491
5491
|
* Sets the font for a given script and generic font family.
|
5492
5492
|
*/
|
5493
|
-
export function setFont(details: SetFontDetails, callback:
|
5493
|
+
export function setFont(details: SetFontDetails, callback: () => void): void;
|
5494
5494
|
/**
|
5495
5495
|
* Clears the minimum font size set by this extension, if any.
|
5496
5496
|
* @param details This parameter is currently unused.
|
@@ -5501,8 +5501,8 @@ declare namespace chrome {
|
|
5501
5501
|
* Clears the minimum font size set by this extension, if any.
|
5502
5502
|
* @param details This parameter is currently unused.
|
5503
5503
|
*/
|
5504
|
-
export function clearMinimumFontSize(callback:
|
5505
|
-
export function clearMinimumFontSize(details: Object, callback:
|
5504
|
+
export function clearMinimumFontSize(callback: () => void): void;
|
5505
|
+
export function clearMinimumFontSize(details: Object, callback: () => void): void;
|
5506
5506
|
/**
|
5507
5507
|
* Gets a list of fonts on the system.
|
5508
5508
|
* @return The `getFontList` method provides its result via callback or returned as a `Promise` (MV3 only).
|
@@ -5522,7 +5522,7 @@ declare namespace chrome {
|
|
5522
5522
|
* Clears the default fixed font size set by this extension, if any.
|
5523
5523
|
* @param details This parameter is currently unused.
|
5524
5524
|
*/
|
5525
|
-
export function clearDefaultFixedFontSize(details: Object, callback:
|
5525
|
+
export function clearDefaultFixedFontSize(details: Object, callback: () => void): void;
|
5526
5526
|
|
5527
5527
|
/** Fired when the default fixed font size setting changes. */
|
5528
5528
|
export var onDefaultFixedFontSizeChanged: DefaultFixedFontSizeChangedEvent;
|
@@ -11690,7 +11690,7 @@ declare namespace chrome {
|
|
11690
11690
|
* Closes a tab.
|
11691
11691
|
* @param tabId The tab to close.
|
11692
11692
|
*/
|
11693
|
-
export function remove(tabId: number, callback:
|
11693
|
+
export function remove(tabId: number, callback: () => void): void;
|
11694
11694
|
/**
|
11695
11695
|
* Closes several tabs.
|
11696
11696
|
* @param tabIds The list of tabs to close.
|
@@ -11701,7 +11701,7 @@ declare namespace chrome {
|
|
11701
11701
|
* Closes several tabs.
|
11702
11702
|
* @param tabIds The list of tabs to close.
|
11703
11703
|
*/
|
11704
|
-
export function remove(tabIds: number[], callback:
|
11704
|
+
export function remove(tabIds: number[], callback: () => void): void;
|
11705
11705
|
/**
|
11706
11706
|
* Captures the visible area of the currently active tab in the specified window. You must have <all_urls> permission to use this method.
|
11707
11707
|
* @param callback
|
@@ -11881,7 +11881,7 @@ declare namespace chrome {
|
|
11881
11881
|
* @param details Details of the script or CSS to inject. Either the code or the file property must be set, but both may not be set at the same time.
|
11882
11882
|
* @param callback Optional. Called when all the CSS has been inserted.
|
11883
11883
|
*/
|
11884
|
-
export function insertCSS(details: InjectDetails, callback:
|
11884
|
+
export function insertCSS(details: InjectDetails, callback: () => void): void;
|
11885
11885
|
/**
|
11886
11886
|
* Injects CSS into a page. For details, see the programmatic injection section of the content scripts doc.
|
11887
11887
|
* @param tabId Optional. The ID of the tab in which to insert the CSS; defaults to the active tab of the current window.
|
@@ -11895,7 +11895,7 @@ declare namespace chrome {
|
|
11895
11895
|
* @param details Details of the script or CSS to inject. Either the code or the file property must be set, but both may not be set at the same time.
|
11896
11896
|
* @param callback Optional. Called when all the CSS has been inserted.
|
11897
11897
|
*/
|
11898
|
-
export function insertCSS(tabId: number, details: InjectDetails, callback:
|
11898
|
+
export function insertCSS(tabId: number, details: InjectDetails, callback: () => void): void;
|
11899
11899
|
/**
|
11900
11900
|
* Highlights the given tabs.
|
11901
11901
|
* @since Chrome 16
|
@@ -12857,19 +12857,19 @@ declare namespace chrome {
|
|
12857
12857
|
* @param id ID of the VPN configuration to destroy.
|
12858
12858
|
* @param callback Optional. Called when the configuration is destroyed or if there is an error.
|
12859
12859
|
*/
|
12860
|
-
export function destroyConfig(id: string, callback?:
|
12860
|
+
export function destroyConfig(id: string, callback?: () => void): void;
|
12861
12861
|
/**
|
12862
12862
|
* Sets the parameters for the VPN session. This should be called immediately after "connected" is received from the platform. This will succeed only when the VPN session is owned by the extension.
|
12863
12863
|
* @param parameters The parameters for the VPN session.
|
12864
12864
|
* @param callback Called when the parameters are set or if there is an error.
|
12865
12865
|
*/
|
12866
|
-
export function setParameters(parameters: VpnSessionParameters, callback
|
12866
|
+
export function setParameters(parameters: VpnSessionParameters, callback?: () => void): void;
|
12867
12867
|
/**
|
12868
12868
|
* Sends an IP packet through the tunnel created for the VPN session. This will succeed only when the VPN session is owned by the extension.
|
12869
12869
|
* @param data The IP packet to be sent to the platform.
|
12870
12870
|
* @param callback Optional. Called when the packet is sent or if there is an error.
|
12871
12871
|
*/
|
12872
|
-
export function sendPacket(data: ArrayBuffer, callback?:
|
12872
|
+
export function sendPacket(data: ArrayBuffer, callback?: () => void): void;
|
12873
12873
|
/**
|
12874
12874
|
* Notifies the VPN session state to the platform. This will succeed only when the VPN session is owned by the extension.
|
12875
12875
|
* @param state The VPN session state of the VPN client.
|
@@ -12877,7 +12877,7 @@ declare namespace chrome {
|
|
12877
12877
|
* failure: VPN connection failed.
|
12878
12878
|
* @param callback Optional. Called when the notification is complete or if there is an error.
|
12879
12879
|
*/
|
12880
|
-
export function notifyConnectionStateChanged(state: string, callback?:
|
12880
|
+
export function notifyConnectionStateChanged(state: string, callback?: () => void): void;
|
12881
12881
|
|
12882
12882
|
/** Triggered when a message is received from the platform for a VPN configuration owned by the extension. */
|
12883
12883
|
export var onPlatformMessage: VpnPlatformMessageEvent;
|
@@ -13150,7 +13150,7 @@ declare namespace chrome {
|
|
13150
13150
|
* Manifest: "host_permissions"
|
13151
13151
|
*/
|
13152
13152
|
export namespace webRequest {
|
13153
|
-
interface WebRequestEvent<T extends
|
13153
|
+
interface WebRequestEvent<T extends (...args: any) => void, U extends string[]>
|
13154
13154
|
extends Omit<chrome.events.Event<T>, "addListener">
|
13155
13155
|
{
|
13156
13156
|
addListener(callback: T, filter: RequestFilter, extraInfoSpec?: U): void;
|
@@ -13407,7 +13407,7 @@ declare namespace chrome {
|
|
13407
13407
|
* Can return its result via Promise in Manifest V3 or later since Chrome 116.
|
13408
13408
|
*/
|
13409
13409
|
export function handlerBehaviorChanged(): Promise<void>;
|
13410
|
-
export function handlerBehaviorChanged(callback:
|
13410
|
+
export function handlerBehaviorChanged(callback: () => void): void;
|
13411
13411
|
|
13412
13412
|
/** Fired when a request is about to occur. */
|
13413
13413
|
export const onBeforeRequest: WebRequestBodyEvent;
|
@@ -13741,7 +13741,7 @@ declare namespace chrome {
|
|
13741
13741
|
*/
|
13742
13742
|
export function remove(windowId: number): Promise<void>;
|
13743
13743
|
/** Removes (closes) a window, and all the tabs inside it. */
|
13744
|
-
export function remove(windowId: number, callback:
|
13744
|
+
export function remove(windowId: number, callback: () => void): void;
|
13745
13745
|
/**
|
13746
13746
|
* Gets the window that was most recently focused — typically the window 'on top'.
|
13747
13747
|
*/
|
@@ -14568,7 +14568,7 @@ declare namespace chrome {
|
|
14568
14568
|
export function isRegexSupported(regexOptions: RegexOptions): Promise<IsRegexSupportedResult>;
|
14569
14569
|
|
14570
14570
|
/** Configures if the action count for tabs should be displayed as the extension action's badge text and provides a way for that action count to be incremented. */
|
14571
|
-
export function setExtensionActionOptions(options: ExtensionActionOptions, callback:
|
14571
|
+
export function setExtensionActionOptions(options: ExtensionActionOptions, callback: () => void): void;
|
14572
14572
|
|
14573
14573
|
/**
|
14574
14574
|
* Configures if the action count for tabs should be displayed as the extension action's badge text and provides a way for that action count to be incremented.
|
@@ -14600,7 +14600,7 @@ declare namespace chrome {
|
|
14600
14600
|
* In case of an error, runtime.lastError will be set and no change will be made to the rule set.
|
14601
14601
|
* This can happen for multiple reasons, such as invalid rule format, duplicate rule ID, rule count limit exceeded, internal errors, and others.
|
14602
14602
|
*/
|
14603
|
-
export function updateDynamicRules(options: UpdateRuleOptions, callback:
|
14603
|
+
export function updateDynamicRules(options: UpdateRuleOptions, callback: () => void): void;
|
14604
14604
|
|
14605
14605
|
/** Modifies the current set of dynamic rules for the extension.
|
14606
14606
|
* The rules with IDs listed in options.removeRuleIds are first removed, and then the rules given in options.addRules are added.
|
@@ -14626,7 +14626,7 @@ declare namespace chrome {
|
|
14626
14626
|
* In case of an error, runtime.lastError will be set and no change will be made to set of enabled rulesets.
|
14627
14627
|
* This can happen for multiple reasons, such as invalid ruleset IDs, rule count limit exceeded, or internal errors.
|
14628
14628
|
*/
|
14629
|
-
export function updateEnabledRulesets(options: UpdateRulesetOptions, callback:
|
14629
|
+
export function updateEnabledRulesets(options: UpdateRulesetOptions, callback: () => void): void;
|
14630
14630
|
|
14631
14631
|
/** Updates the set of enabled static rulesets for the extension.
|
14632
14632
|
* The rulesets with IDs listed in options.disableRulesetIds are first removed, and then the rulesets listed in options.enableRulesetIds are added.
|
@@ -14651,7 +14651,7 @@ declare namespace chrome {
|
|
14651
14651
|
* In case of an error, runtime.lastError will be set and no change will be made to the rule set.
|
14652
14652
|
* This can happen for multiple reasons, such as invalid rule format, duplicate rule ID, rule count limit exceeded, and others.
|
14653
14653
|
*/
|
14654
|
-
export function updateSessionRules(options: UpdateRuleOptions, callback:
|
14654
|
+
export function updateSessionRules(options: UpdateRuleOptions, callback: () => void): void;
|
14655
14655
|
|
14656
14656
|
/** Modifies the current set of session scoped rules for the extension.
|
14657
14657
|
* The rules with IDs listed in options.removeRuleIds are first removed, and then the rules given in options.addRules are added.
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.320",
|
4
4
|
"description": "TypeScript definitions for chrome",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -94,6 +94,6 @@
|
|
94
94
|
"@types/har-format": "*"
|
95
95
|
},
|
96
96
|
"peerDependencies": {},
|
97
|
-
"typesPublisherContentHash": "
|
97
|
+
"typesPublisherContentHash": "ca0090d3efdc623fd23f23a45948bb1a51e67fa8ab94d9d70f9e170d1e655dfa",
|
98
98
|
"typeScriptVersion": "5.1"
|
99
99
|
}
|