Last active
February 3, 2018 15:02
-
-
Save code-vagabond/e0d752a50089f903faac798feb7f53e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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