Add missing type to chrome.runtime

This commit is contained in:
MiOnim
2019-04-04 16:40:59 -04:00
parent 68a5662914
commit 0f99e1248c
+4 -1
View File
@@ -5242,6 +5242,9 @@ declare namespace chrome.runtime {
version: string;
}
/** Result of the update check. */
export type RequestUpdateCheckStatus = 'throttled' | 'no_update' | 'update_available';
export interface PortDisconnectEvent extends chrome.events.Event<(port: Port) => void> { }
export interface PortMessageEvent extends chrome.events.Event<(message: any, port: Port) => void> { }
@@ -5518,7 +5521,7 @@ declare namespace chrome.runtime {
* Parameter status: Result of the update check. One of: "throttled", "no_update", or "update_available"
* Optional parameter details: If an update is available, this contains more information about the available update.
*/
export function requestUpdateCheck(callback: (status: string, details?: UpdateCheckDetails) => void): void;
export function requestUpdateCheck(callback: (status: RequestUpdateCheckStatus, details?: UpdateCheckDetails) => void): void;
/**
* Restart the ChromeOS device when the app runs in kiosk mode. Otherwise, it's no-op.
* @since Chrome 32.