From cec2a185f53bde59bac50f6cb286ff2a0b608379 Mon Sep 17 00:00:00 2001 From: nomnes Date: Tue, 6 Aug 2019 20:55:24 +0700 Subject: [PATCH] update --- index.d.ts | 5 +++-- package.json | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index c15ec00..c968de7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 { (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, actionPrefix?: string, mutationPrefix?: string, options?: { diff --git a/package.json b/package.json index f457b66..c0d0749 100644 --- a/package.json +++ b/package.json @@ -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" }