From 13bb9944e67b2367c2aeabf3a09b944e3e5eb96d Mon Sep 17 00:00:00 2001
From: nomnes <nomnes1990@gmail.com>
Date: Tue, 6 Aug 2019 20:45:26 +0700
Subject: [PATCH] update

---
 index.d.ts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/index.d.ts b/index.d.ts
index b164176..c15ec00 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -7,6 +7,7 @@ import {
     PropsDefinition,
 } from "vue/types/options";
 import { Vue } from "vue/types/vue";
+import { PluginFunction, PluginObject } from "vue";
 
 interface socketHandler<T> {
     (this: T, ...args: any[]): SocketIOClient.Socket
@@ -29,3 +30,21 @@ declare module 'vue/types/options' {
         sockets: {[key: string]: socketHandler<V>}
     }
 }
+
+export interface VueSocketOptions {
+    debug?: boolean;
+    connection: string,
+    vuex?: {
+        store?: any,
+        actionPrefix?: string,
+        mutationPrefix?: string,
+        options?: {
+            useConnectionNamespace?: boolean
+        }
+    }
+}
+
+export default class VueSocketIO<T> implements PluginObject<T> {
+    constructor (options: VueSocketOptions);
+    install: PluginFunction<T>
+}