mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
update
This commit is contained in:
parent
13bb9944e6
commit
cec2a185f5
2 changed files with 4 additions and 2 deletions
5
index.d.ts
vendored
5
index.d.ts
vendored
|
@ -8,6 +8,7 @@ import {
|
||||||
} from "vue/types/options";
|
} from "vue/types/options";
|
||||||
import { Vue } from "vue/types/vue";
|
import { Vue } from "vue/types/vue";
|
||||||
import { PluginFunction, PluginObject } from "vue";
|
import { PluginFunction, PluginObject } from "vue";
|
||||||
|
import { Store } from "vuex";
|
||||||
|
|
||||||
interface socketHandler<T> {
|
interface socketHandler<T> {
|
||||||
(this: T, ...args: any[]): SocketIOClient.Socket
|
(this: T, ...args: any[]): SocketIOClient.Socket
|
||||||
|
@ -33,9 +34,9 @@ declare module 'vue/types/options' {
|
||||||
|
|
||||||
export interface VueSocketOptions {
|
export interface VueSocketOptions {
|
||||||
debug?: boolean;
|
debug?: boolean;
|
||||||
connection: string,
|
connection: string | SocketIOClient.Socket,
|
||||||
vuex?: {
|
vuex?: {
|
||||||
store?: any,
|
store?: Store<any>,
|
||||||
actionPrefix?: string,
|
actionPrefix?: string,
|
||||||
mutationPrefix?: string,
|
mutationPrefix?: string,
|
||||||
options?: {
|
options?: {
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
"babel-loader": "^8.0.4",
|
"babel-loader": "^8.0.4",
|
||||||
"cross-env": "^5.2.0",
|
"cross-env": "^5.2.0",
|
||||||
"vue": "^2.6.10",
|
"vue": "^2.6.10",
|
||||||
|
"vuex": "^3.1.1",
|
||||||
"webpack": "^4.23.1",
|
"webpack": "^4.23.1",
|
||||||
"webpack-cli": "^3.1.2"
|
"webpack-cli": "^3.1.2"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue