Skip to content

Instantly share code, notes, and snippets.

@imteekay
Created July 15, 2020 02:42
Show Gist options
  • Save imteekay/b2470638929a62d04aeadb1c0b8dfadd to your computer and use it in GitHub Desktop.
Save imteekay/b2470638929a62d04aeadb1c0b8dfadd to your computer and use it in GitHub Desktop.
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