Last active
October 31, 2021 20:45
-
-
Save przemyslawjanpietrzak/52e7602697b2ed93bda903a6de735e32 to your computer and use it in GitHub Desktop.
literal-types-vuex.ts
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
actionA1({ commit, dispatch }, payload) { | |
commit('mutationA1', false); // ERROR: Argument of type 'boolean' is not assignable to parameter of type 'MutationA2Payload'. | |
dispatch('actionA2', false); // ERROR: Argument of type 'boolean' is not assignable to parameter of type 'ActionA2Payload'. | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment