-
-
Save quicksnap/fa68d9a7c129d79fbc8cb28ba4f1899b 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
function reducer(state: MyAppState, action: Action) { | |
if (isAction(action, 'ADD_TO_CART')) { | |
const productIds = action.payload.productIds; // Safely typed! | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment