Created
October 31, 2021 20:37
-
-
Save przemyslawjanpietrzak/58e5550f2fff88841c08a90acbc90a2b 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
interface Module1Mutations { | |
mutationA1(state: Module1State, payload: MutationA1Payload): void | |
mutationA2(state: Module1State, payload: MutationA2Payload): void | |
} | |
export const module1Mutations: MutationTree<Module1State> & Module1Mutations = { | |
mutationA1(state, payload) {}, | |
mutationA2(state, payload) {}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment