[Vuejs]-Vuex typescript commit type

0👍

commit shouldn’t be explicitly typed, the whole function should:

const SET_TEST: Action<MyStoreType, MyStateType> = ({commit}, val: string | number) => ...

Leave a comment