mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Add missing url property for all requests (#10201)
See documentation https://developer.chrome.com/extensions/webRequest https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webRequest/
This commit is contained in:
2
chrome/chrome.d.ts
vendored
2
chrome/chrome.d.ts
vendored
@@ -7233,6 +7233,7 @@ declare namespace chrome.webRequest {
|
||||
}
|
||||
|
||||
interface ResourceRequest {
|
||||
url: string;
|
||||
/** The ID of the request. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request. */
|
||||
requestId: string;
|
||||
/** The value 0 indicates that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (type is main_frame or sub_frame), frameId indicates the ID of this frame, not the ID of the outer frame. Frame IDs are unique within a tab. */
|
||||
@@ -7251,7 +7252,6 @@ declare namespace chrome.webRequest {
|
||||
}
|
||||
|
||||
interface WebRequestDetails extends ResourceRequest {
|
||||
url: string;
|
||||
/** Standard HTTP method. */
|
||||
method: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user