Created
November 8, 2017 12:14
-
-
Save engineersamuel/a5e7acf392a8ec96b646cae0e0c74d27 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
interface IActionUpdateProductNameVersion { | |
productName: string; | |
productVersion: string; | |
} | |
const requestUpdateProductVersion = createAction<interfaces.IActionUpdateProductNameVersion, void>(types.REQUEST_UPDATE_PRODUCT_VERSION, | |
(productName: string, productVersion: string) => ({productName, productVersion}), | |
null | |
); | |
const receiveUpdateProductVersion = createAction<interfaces.IActionUpdateProductNameVersion, interfaces.IMetaIsXhrError>(types.RECEIVE_UPDATE_PRODUCT_VERSION, | |
(productName: string, productVersion: string) => ({productName, productVersion}), | |
isXhrError | |
); | |
[types.RECEIVE_UPDATE_PRODUCT_VERSION]: (state: ICaseDetailsState, action: ActionMeta<interfaces.IActionUpdateProductNameVersion, interfaces.IMetaIsXhrError>): ICaseDetailsState => { | |
// ... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment