Skip to content

Instantly share code, notes, and snippets.

@code-vagabond
Last active February 3, 2018 15:02
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 code-vagabond/e0d752a50089f903faac798feb7f53e3 to your computer and use it in GitHub Desktop.
Save code-vagabond/e0d752a50089f903faac798feb7f53e3 to your computer and use it in GitHub Desktop.
export const AuthActionTypes = {
SIGN_IN: type('AUTH:SIGN_IN'),
};
export interface SignInAction extends Action {
payload: {
username: string;
password: string;
};
}
export function signIn(username: string, password: string): SignInAction {
return {
type: AuthActionTypes.SIGN_IN,
payload: {
username,
password
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment