(params: ActionDecoratorParams = {})
| 56 | }) |
| 57 | |
| 58 | function buildStore(params: ActionDecoratorParams = {}) { |
| 59 | @Module |
| 60 | class MyModule extends VuexModule { |
| 61 | @Action(params) |
| 62 | async alwaysFail() { |
| 63 | throw new Error('Foo Bar!') |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | return new Store({ |
| 68 | modules: { |
| 69 | mm: MyModule |
| 70 | } |
| 71 | }) |
| 72 | } |
| 73 | }) |