Merge pull request #2179 from pine613/feature/chrome/tabs_update

Add overload
This commit is contained in:
Masahiro Wakame
2014-05-12 15:15:23 +09:00
+1
View File
@@ -1831,6 +1831,7 @@ declare module chrome.tabs {
export function create(createProperties: CreateProperties, callback?: (tab: Tab) => void): void;
export function move(tabId: number, moveProperties: MoveProperties, callback?: (tab: Tab) => void): void;
export function move(tabIds: number[], moveProperties: MoveProperties, callback?: (tabs: Tab[]) => void): void;
export function update(updateProperties: UpdateProperties, callback?: (tab?: Tab) => void): void;
export function update(tabId: number, updateProperties: UpdateProperties, callback?: (tab?: Tab) => void): void;
export function remove(tabId: number, callback?: Function): void;
export function remove(tabIds: number[], callback?: Function): void;