Given an action wit optional parameter:
async testIt(context: TestContext, payload?: number): Promise<void> {}
Is mapped with:
export const testAction = dispatch(test.actions.testIt)
When you call the action inside a VUE Component with the optional parameter:
test.testAction(this.$store, 123)
You will get a compile error:
Expected 1 arguments, but got 2.