Skip to content

Commit

Permalink
fix(types): Add Missing Methods & Props to "./packages/shell-electron…
Browse files Browse the repository at this point in the history
…/types" (#1397)
  • Loading branch information
joshmossas authored Nov 23, 2021
1 parent 80924e5 commit b71ae4a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/shell-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"@vue-devtools/app-frontend": "^0.0.0",
"@vue-devtools/build-tools": "^0.0.0",
"@vue-devtools/shared-utils": "^0.0.0",
"vue": "^2.6.12",
"webpack": "^4.19.0",
"webpack-cli": "^3.1.0"
}
}
}
16 changes: 15 additions & 1 deletion packages/shell-electron/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
export function connect(host?: string, port?: number|string): void
import type { VueConstructor } from "vue";

interface ConnectOptions {
io?: Function;
showToast?: Function;
app?: VueConstructor | VueConstructor[];
}

export function connect(
host?: string,
port?: number | string,
options?: ConnectOptions
): void;

export function init(vue: VueConstructor | VueConstructor[]): void;

0 comments on commit b71ae4a

Please sign in to comment.