This commit is contained in:
crusader 2018-05-28 17:28:56 +09:00
parent 1d0ac6b572
commit 93647f176a
2 changed files with 1 additions and 8 deletions

View File

@ -14,7 +14,7 @@ import {
ActionType as AuthActionType,
} from '@overflow/shared/auth/store/container/auth';
export function reducer(state = initialState, action: MemberActions | AuthActions): State {
export function reducer(state: State = initialState, action: MemberActions | AuthActions): State {
switch (action.type) {
case MemberActionType.Signin: {
return {

View File

@ -7,7 +7,6 @@ import { DomainMember } from '@overflow/commons-typescript/model/domain';
export enum ActionType {
SigninSuccess = '[auth.auth] SigninSuccess',
SigninFailure = '[auth.auth] SigninFailure',
SigninRedirect = '[auth.auth] SigninRedirect',
SigninCookieSuccess = '[auth.auth] SigninCookieSuccess',
SigninCookieFailure = '[auth.auth] SigninCookieFailure',
@ -28,11 +27,6 @@ export class SigninFailure implements Action {
constructor(public payload: RESTClientError) {}
}
export class SigninRedirect implements Action {
readonly type = ActionType.SigninRedirect;
constructor(public payload: string) {}
}
export class SigninCookieSuccess implements Action {
readonly type = ActionType.SigninCookieSuccess;
@ -58,7 +52,6 @@ export class SignoutFailure implements Action {
export type Actions =
| SigninSuccess
| SigninFailure
| SigninRedirect
| SigninCookieSuccess
| SigninCookieFailure
| SignoutSuccess