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:
parent
8a6e0f6d57
commit
6224992453
1 changed files with 1 additions and 2 deletions
3
index.d.ts
vendored
3
index.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue