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 { (this: T, ...args: any[]): SocketIOClient.Socket @@ -29,3 +30,21 @@ declare module 'vue/types/options' { sockets: {[key: string]: socketHandler} } } + +export interface VueSocketOptions { + debug?: boolean; + connection: string, + vuex?: { + store?: any, + actionPrefix?: string, + mutationPrefix?: string, + options?: { + useConnectionNamespace?: boolean + } + } +} + +export default class VueSocketIO implements PluginObject { + constructor (options: VueSocketOptions); + install: PluginFunction +}