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';
```
This commit is contained in:
jsbyysheng 2022-03-06 12:54:03 +08:00 committed by GitHub
parent 8a6e0f6d57
commit 6224992453
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
index.d.ts vendored
View file

@ -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;
}
}