This commit is contained in:
nomnes 2019-08-06 20:55:24 +07:00
parent 13bb9944e6
commit cec2a185f5
2 changed files with 4 additions and 2 deletions

5
index.d.ts vendored
View file

@ -8,6 +8,7 @@ import {
} from "vue/types/options";
import { Vue } from "vue/types/vue";
import { PluginFunction, PluginObject } from "vue";
import { Store } from "vuex";
interface socketHandler<T> {
(this: T, ...args: any[]): SocketIOClient.Socket
@ -33,9 +34,9 @@ declare module 'vue/types/options' {
export interface VueSocketOptions {
debug?: boolean;
connection: string,
connection: string | SocketIOClient.Socket,
vuex?: {
store?: any,
store?: Store<any>,
actionPrefix?: string,
mutationPrefix?: string,
options?: {

View file

@ -39,6 +39,7 @@
"babel-loader": "^8.0.4",
"cross-env": "^5.2.0",
"vue": "^2.6.10",
"vuex": "^3.1.1",
"webpack": "^4.23.1",
"webpack-cli": "^3.1.2"
}