mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
add 'declares' to typescript declaration file
This commit is contained in:
parent
dab855bdb7
commit
9fd13e8f67
4
index.d.ts
vendored
4
index.d.ts
vendored
|
@ -1,7 +1,7 @@
|
|||
import {EventEmitter} from 'events';
|
||||
import {WebviewTag} from 'electron';
|
||||
|
||||
class ElectronTabs extends EventEmitter {
|
||||
declare class ElectronTabs extends EventEmitter {
|
||||
constructor(options?: ElectronTabs.TabGroupOptions);
|
||||
addTab(options?: ElectronTabs.TabOptions): ElectronTabs.Tab;
|
||||
getTab(id: string): ElectronTabs.Tab | null;
|
||||
|
@ -16,7 +16,7 @@ class ElectronTabs extends EventEmitter {
|
|||
tabContainer: HTMLElement;
|
||||
}
|
||||
|
||||
namespace ElectronTabs {
|
||||
declare namespace ElectronTabs {
|
||||
export interface TabGroupOptions {
|
||||
tabContainerSelector?: string;
|
||||
buttonsContainerSelector?: string;
|
||||
|
|
Loading…
Reference in a new issue