We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d7cd4f commit 42c0834Copy full SHA for 42c0834
packages/store/src/decorators/dispatch.ts
@@ -17,11 +17,8 @@ export function dispatch(): PropertyDecorator {
17
): PropertyDescriptor {
18
let originalMethod: () => Action;
19
20
- const wrapped = function(this: unknown, ...args: unknown[]) {
21
- const result = originalMethod.apply<unknown, unknown[], Action>(
22
- this,
23
- args,
24
- );
+ const wrapped = function(this: unknown, ...args: any) {
+ const result = originalMethod.apply(this, args);
25
if (result !== undefined) {
26
const store = getBaseStore(this) || NgRedux.instance;
27
if (store) {
0 commit comments