From 85f17f1790d73456ce3c5bd8a40a39eb4b62a8ea Mon Sep 17 00:00:00 2001 From: kyo_ago Date: Fri, 21 Nov 2014 00:22:47 +0900 Subject: [PATCH] Fix the return type in chrome.tabs.connect The return type was updated in chrome extension. See the API documentation here: https://developer.chrome.com/extensions/tabs#method-connect --- chrome/chrome.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/chrome.d.ts b/chrome/chrome.d.ts index da42f687a..c7eb82b1b 100755 --- a/chrome/chrome.d.ts +++ b/chrome/chrome.d.ts @@ -1949,7 +1949,7 @@ declare module chrome.tabs { export function reload(tabId?: number, reloadProperties?: ReloadProperties, func?: Function): void; export function duplicate(tabId: number, callback?: (tab?: Tab) => void): void; export function sendMessage(tabId: number, message: any, responseCallback?: (response: any) => void): void; - export function connect(tabId: number, connectInfo?: ConnectInfo): void; + export function connect(tabId: number, connectInfo?: ConnectInfo): runtime.Port; export function insertCSS(tabId: number, details: InjectDetails, callback?: Function): void; export function highlight(highlightInfo: HighlightInfo, callback: (window: chrome.windows.Window) => void): void; export function query(queryInfo: QueryInfo, callback: (result: Tab[]) => void): void;