Skip to content

Instantly share code, notes, and snippets.

@przemyslawjanpietrzak
Last active October 31, 2021 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save przemyslawjanpietrzak/5c49ca1b97b67e84e578d08af99b2a5c to your computer and use it in GitHub Desktop.
Save przemyslawjanpietrzak/5c49ca1b97b67e84e578d08af99b2a5c to your computer and use it in GitHub Desktop.
literal-types-vuex.ts
dispatch(
`${module2Namespace}/actionB2`,
payload,
{ root: true },
); // ERROR: Argument of type 'string' is not assignable to parameter of type '"module2Namespace/actionB1" | ""module2Namespace/actionB1"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment