Merge pull request #67 from avocadianmage/master
Add 'declare' modifier to top-level elements in Typescript declarations file
This commit is contained in:
commit
a4e87ae948
1 changed files with 2 additions and 2 deletions
4
index.d.ts
vendored
4
index.d.ts
vendored
|
@ -1,7 +1,7 @@
|
||||||
import {EventEmitter} from 'events';
|
import {EventEmitter} from 'events';
|
||||||
import {WebviewTag} from 'electron';
|
import {WebviewTag} from 'electron';
|
||||||
|
|
||||||
class ElectronTabs extends EventEmitter {
|
declare class ElectronTabs extends EventEmitter {
|
||||||
constructor(options?: ElectronTabs.TabGroupOptions);
|
constructor(options?: ElectronTabs.TabGroupOptions);
|
||||||
addTab(options?: ElectronTabs.TabOptions): ElectronTabs.Tab;
|
addTab(options?: ElectronTabs.TabOptions): ElectronTabs.Tab;
|
||||||
getTab(id: string): ElectronTabs.Tab | null;
|
getTab(id: string): ElectronTabs.Tab | null;
|
||||||
|
@ -16,7 +16,7 @@ class ElectronTabs extends EventEmitter {
|
||||||
tabContainer: HTMLElement;
|
tabContainer: HTMLElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace ElectronTabs {
|
declare namespace ElectronTabs {
|
||||||
export interface TabGroupOptions {
|
export interface TabGroupOptions {
|
||||||
tabContainerSelector?: string;
|
tabContainerSelector?: string;
|
||||||
buttonsContainerSelector?: string;
|
buttonsContainerSelector?: string;
|
||||||
|
|
Loading…
Reference in a new issue