11 lines
275 B
TypeScript
11 lines
275 B
TypeScript
|
import { Action } from "redux";
|
||
|
|
||
|
export const SET_CURRENT_USER = 'SET_CURRENT_USER';
|
||
|
|
||
|
export interface setCurrentUserAction extends Action {
|
||
|
email: string
|
||
|
}
|
||
|
|
||
|
export function setCurrentUser(email: string): setCurrentUserAction {
|
||
|
return { type: SET_CURRENT_USER, email };
|
||
|
}
|