Skip to content

Instantly share code, notes, and snippets.

@panvourtsis
Last active June 12, 2019 10:50
Show Gist options
  • 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