From 9fd13e8f6741c68899c5c7f89b2700b8096891b8 Mon Sep 17 00:00:00 2001 From: avocadianmage Date: Fri, 31 Aug 2018 22:12:55 -0500 Subject: [PATCH] add 'declares' to typescript declaration file --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 6d58a72..d93eae8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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;