mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-10 09:40:21 +08:00
Merge pull request #2596 from pine613/feature/chrome/lastError
Add LastError interface
This commit is contained in:
12
chrome/chrome.d.ts
vendored
12
chrome/chrome.d.ts
vendored
@@ -843,8 +843,12 @@ declare module chrome.extension {
|
||||
type?: string;
|
||||
}
|
||||
|
||||
interface LastError {
|
||||
message?: string;
|
||||
}
|
||||
|
||||
var inIncognitoContext: boolean;
|
||||
var lastError: Object;
|
||||
var lastError: LastError;
|
||||
|
||||
export function getBackgroundPage(): Window;
|
||||
export function getURL(path: string): string;
|
||||
@@ -1487,9 +1491,13 @@ declare module chrome.proxy {
|
||||
// Runtime
|
||||
////////////////////
|
||||
declare module chrome.runtime {
|
||||
var lastError: Object;
|
||||
var lastError: LastError;
|
||||
var id: string;
|
||||
|
||||
interface LastError {
|
||||
message?: string;
|
||||
}
|
||||
|
||||
interface ConnectInfo {
|
||||
name?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user