File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ export interface ServerConf {
1717 icon : string ;
1818}
1919
20+ export type TabRole = "server" | "function" ;
21+
2022export interface TabData {
21- role : string ;
23+ role : TabRole ;
2224 name : string ;
2325 index : number ;
2426 webviewName : string ;
Original file line number Diff line number Diff line change 1+ import type { TabRole } from "../../../common/types" ;
2+
13import type WebView from "./webview" ;
24
35export interface TabProps {
4- role : string ;
6+ role : TabRole ;
57 icon ?: string ;
68 name : string ;
79 $root : Element ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import path from "path";
55import * as ConfigUtil from "../../../common/config-util" ;
66import { HTML , html } from "../../../common/html" ;
77import type { RendererMessage } from "../../../common/typed-ipc" ;
8+ import type { TabRole } from "../../../common/types" ;
89import { ipcRenderer } from "../typed-ipc-renderer" ;
910import * as SystemUtil from "../utils/system-util" ;
1011
@@ -21,7 +22,7 @@ interface WebViewProps {
2122 index : number ;
2223 tabIndex : number ;
2324 url : string ;
24- role : string ;
25+ role : TabRole ;
2526 name : string ;
2627 isActive : ( ) => boolean ;
2728 switchLoading : ( loading : boolean , url : string ) => void ;
You can’t perform that action at this time.
0 commit comments