Fix type: getTab(id: number)

This commit is contained in:
Thomas Brouard 2018-11-27 12:28:48 +01:00
parent 8c1717503a
commit eeeebd41ce

2
index.d.ts vendored
View file

@ -4,7 +4,7 @@ import {WebviewTag} from 'electron';
declare class ElectronTabs extends EventEmitter {
constructor(options?: ElectronTabs.TabGroupOptions);
addTab(options?: ElectronTabs.TabOptions): ElectronTabs.Tab;
getTab(id: string): ElectronTabs.Tab | null;
getTab(id: number): ElectronTabs.Tab | null;
getTabByPosition(position: number): ElectronTabs.Tab | null;
getTabByRelPosition(position: number): ElectronTabs.Tab | null;
getActiveTab(): ElectronTabs.Tab | null;