Skip to content

Commit

Permalink
fix: improve type definition for GlobalStore (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
subzero10 committed Aug 20, 2022
1 parent d60e47b commit 6f722fe
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions packages/core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@types/aws-lambda": "^8.10.89",
"@types/express": "^4.17.13",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.46",
"@types/node": "^17.0.45",
"jest": "^27.4.4",
"sinon": "^14.0.0",
"ts-jest": "^27.1.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export class GlobalStore<T> implements HoneybadgerStore<T> {
return this.store
}

run<R, TArgs extends never[]>(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R {
run<R, TArgs extends unknown[]>(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R {
this.store = store;
return callback(...args);
}
}
}
14 changes: 7 additions & 7 deletions packages/js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@types/aws-lambda": "^8.10.89",
"@types/express": "^4.17.13",
"@types/jest": "^27.0.3",
"@types/node": "^12.20.46",
"@types/node": "^17.0.45",
"express": "^4.17.1",
"jest": "^27.4.4",
"nock": "^13.2.1",
Expand Down

0 comments on commit 6f722fe

Please sign in to comment.