Skip to content

Commit b71ae4a

Browse files
authored
fix(types): Add Missing Methods & Props to "./packages/shell-electron/types" (#1397)
1 parent 80924e5 commit b71ae4a

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

packages/shell-electron/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"@vue-devtools/app-frontend": "^0.0.0",
3535
"@vue-devtools/build-tools": "^0.0.0",
3636
"@vue-devtools/shared-utils": "^0.0.0",
37+
"vue": "^2.6.12",
3738
"webpack": "^4.19.0",
3839
"webpack-cli": "^3.1.0"
3940
}
40-
}
41+
}
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
export function connect(host?: string, port?: number|string): void
1+
import type { VueConstructor } from "vue";
2+
3+
interface ConnectOptions {
4+
io?: Function;
5+
showToast?: Function;
6+
app?: VueConstructor | VueConstructor[];
7+
}
8+
9+
export function connect(
10+
host?: string,
11+
port?: number | string,
12+
options?: ConnectOptions
13+
): void;
14+
15+
export function init(vue: VueConstructor | VueConstructor[]): void;

0 commit comments

Comments
 (0)