From 622499245338d4a62eb134decc43a5a7f52aa209 Mon Sep 17 00:00:00 2001 From: jsbyysheng Date: Sun, 6 Mar 2022 12:54:03 +0800 Subject: [PATCH] Fix TypeScript compile error with Electron `WebviewTag` is no longer defined in `electron` module, fix for ``` node_modules/electron-tabs/index.d.ts:2:9 - error TS2305: Module '"electron"' has no exported member 'WebviewTag'. 2 import {WebviewTag} from 'electron'; ``` --- index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index aca81c8..867dbd2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,4 @@ import {EventEmitter} from 'events'; -import {WebviewTag} from 'electron'; declare class ElectronTabs extends EventEmitter { constructor(options?: ElectronTabs.TabGroupOptions); @@ -59,7 +58,7 @@ declare namespace ElectronTabs { flash(shown?: boolean): void; unflash(): void; close(force?: boolean): void; - webview: WebviewTag; + webview: Electron.WebviewTag; } }