Skip to content

Commit 42c0834

Browse files
author
James Salas
committed
fix: workaround ng-packagr type argument bug
1 parent 8d7cd4f commit 42c0834

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/store/src/decorators/dispatch.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ export function dispatch(): PropertyDecorator {
1717
): PropertyDescriptor {
1818
let originalMethod: () => Action;
1919

20-
const wrapped = function(this: unknown, ...args: unknown[]) {
21-
const result = originalMethod.apply<unknown, unknown[], Action>(
22-
this,
23-
args,
24-
);
20+
const wrapped = function(this: unknown, ...args: any) {
21+
const result = originalMethod.apply(this, args);
2522
if (result !== undefined) {
2623
const store = getBaseStore(this) || NgRedux.instance;
2724
if (store) {

0 commit comments

Comments
 (0)