mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Update chrome.d.ts
This commit is contained in:
12
chrome/chrome.d.ts
vendored
12
chrome/chrome.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Chrome extension development.
|
||||
// Type definitions for Chrome extension development.
|
||||
// Project: http://developer.chrome.com/extensions/
|
||||
// Definitions by: Matthew Kimber <https://github.com/matthewkimber>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -1061,7 +1061,7 @@ declare module chrome.history {
|
||||
// Identity
|
||||
////////////////////
|
||||
declare module chrome.identity {
|
||||
var getAuthToken: (options:{}, cb:(token:{})=>void)=>void;
|
||||
var getAuthToken: (options:any, cb:(token:{})=>void)=>void;
|
||||
}
|
||||
|
||||
|
||||
@@ -1350,7 +1350,7 @@ declare module chrome.pageCapture {
|
||||
tabId: number;
|
||||
}
|
||||
|
||||
export function saveAsMHTML(details: SaveDetails, callback: (mhtmlData?: any) => void): void;
|
||||
export function saveAsMHTML(details: SaveDetails, callback: (mhtmlData: any) => void): void;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
@@ -1481,6 +1481,9 @@ declare module chrome.runtime {
|
||||
interface RuntimeSuspendCanceledEvent extends chrome.events.Event {
|
||||
addListener(callback: Function): void;
|
||||
}
|
||||
interface RuntimeMessageEvent extends chrome.events.Event {
|
||||
addListener(callback: Function): void;
|
||||
}
|
||||
|
||||
export function getBackgroundPage(callback: (backgroundPage?: Window) => void): void;
|
||||
export function getManifest(): Object;
|
||||
@@ -1490,6 +1493,9 @@ declare module chrome.runtime {
|
||||
var onStartup: RuntimeStartupEvent;
|
||||
var onInstalled: RuntimeInstalledEvent;
|
||||
var onSuspendCanceled: RuntimeSuspendCanceledEvent;
|
||||
var onMessage: RuntimeMessageEvent;
|
||||
var sendMessage:(req:any, cb:(resp:any)=>void)=>void;
|
||||
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
Reference in New Issue
Block a user