Skip to content

Instantly share code, notes, and snippets.

@panvourtsis
Last active June 12, 2019 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panvourtsis/de778ce5264a38540c1fa63449089df5 to your computer and use it in GitHub Desktop.
Save panvourtsis/de778ce5264a38540c1fa63449089df5 to your computer and use it in GitHub Desktop.
export const SET_USER_TOKEN = 'SET_USER_TOKEN';
export interface SetUserTokenAction {
type: typeof SET_USER_TOKEN;
payload: string;
}
export type UserActionTypes =
| SetUserTokenAction
| ActionB // other action
| ActionC; // other action
export interface User {
id: number | null;
name: string;
email: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment