Skip to content

Instantly share code, notes, and snippets.

@alex-okrushko
Last active April 2, 2019 20:51
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 alex-okrushko/327c8ac59a8ce6346cb4bdf9f0c3e31b to your computer and use it in GitHub Desktop.
Save alex-okrushko/327c8ac59a8ce6346cb4bdf9f0c3e31b to your computer and use it in GitHub Desktop.
/** see below - comment is required for all exported symbols */
export const LOGIN = '[Login Page] Login',
interface LoginPayload {
username: string;
password: string;
}
/** Action to log in the User from the Login Page */
export class Login implements Action {
readonly type = LOGIN;
constructor(readonly payload: LoginPayload) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment