Created
July 15, 2020 02:42
-
-
Save imteekay/b2470638929a62d04aeadb1c0b8dfadd 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
import { LIFECYCLE, MetaPayload } from 'redux-pack'; | |
// Type of computed property's value is '"success"', which is not assignable to type 'LIFECYCLEValues'. | |
const payloadMeta: MetaPayload<{}> = { | |
'redux-pack/LIFECYCLE': LIFECYCLE.SUCCESS | |
}; | |
// Works fine! | |
const payloadMeta: MetaPayload<{}> = { | |
'redux-pack/LIFECYCLE': 'succes' // typo! | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment