Cleanup socketio stuff for typescript

This commit is contained in:
Dane Everitt
2018-12-16 18:57:34 -08:00
parent 3ad4422a94
commit 5e4ca8ef83
22 changed files with 246 additions and 210 deletions

View File

@@ -1,24 +1,19 @@
import User, {UserData} from '../../models/user';
import {ActionContext} from "vuex";
import {AuthenticationState} from "../types";
const route = require('./../../../../../vendor/tightenco/ziggy/src/js/route').default;
type LoginAction = {
type: 'login',
user: string,
password: string,
}
type UpdateEmailAction = {
type: 'updateEmail',
email: string,
password: string,
}
export type AuthenticationState = {
user: null | User,
}
export default {
namespaced: true,
state: {