Michael Schramm 8d81390c83 apply eslint
2020-06-09 11:54:50 +02:00

21 lines
522 B
TypeScript

import redux, { Reducer } from 'redux'
export interface AuthState {
authenticated?: boolean
}
type ActionTypes = 'AUTH_INIT' | 'AUTH_LOGOUT' | 'AUTH_UPDATE_SETTINGS'
type Action = redux.Action<ActionTypes> & redux.AnyAction
export const actionTypes: { [key: string]: ActionTypes } = {
INIT: 'AUTH_INIT',
LOGOUT: 'AUTH_LOGOUT',
UPDATE_SETTINGS: 'AUTH_UPDATE_SETTINGS',
}
const initialState: AuthState = {}
export const auth: Reducer<AuthState, Action> = (state = initialState): AuthState => {
return state
}