Skip to content

Commit

Permalink
chore(suite-native): add redux.d.ts to @suite-native/mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
jbazant committed Jan 24, 2025
1 parent d3b9357 commit c127ab4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions suite-native/accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dependencies": {
"@mobily/ts-belt": "^3.13.1",
"@react-navigation/native": "6.1.18",
"@reduxjs/toolkit": "1.9.5",
"@suite-common/formatters": "workspace:*",
"@suite-common/redux-utils": "workspace:*",
"@suite-common/token-definitions": "workspace:*",
Expand Down
7 changes: 7 additions & 0 deletions suite-native/accounts/redux.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { AsyncThunkAction } from '@reduxjs/toolkit';

declare module 'redux' {
export interface Dispatch {
<TThunk extends AsyncThunkAction<any, any, any>>(thunk: TThunk): ReturnType<TThunk>;
}
}
4 changes: 3 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9871,6 +9871,7 @@ __metadata:
dependencies:
"@mobily/ts-belt": "npm:^3.13.1"
"@react-navigation/native": "npm:6.1.18"
"@reduxjs/toolkit": "npm:1.9.5"
"@suite-common/formatters": "workspace:*"
"@suite-common/redux-utils": "workspace:*"
"@suite-common/token-definitions": "workspace:*"
Expand Down Expand Up @@ -9995,6 +9996,7 @@ __metadata:
"@suite-native/module-send": "workspace:*"
"@suite-native/module-settings": "workspace:*"
"@suite-native/module-staking-management": "workspace:*"
"@suite-native/module-trading": "workspace:*"
"@suite-native/navigation": "workspace:*"
"@suite-native/notifications": "workspace:*"
"@suite-native/receive": "workspace:*"
Expand Down Expand Up @@ -10948,7 +10950,7 @@ __metadata:
languageName: unknown
linkType: soft

"@suite-native/module-trading@workspace:suite-native/module-trading":
"@suite-native/module-trading@workspace:*, @suite-native/module-trading@workspace:suite-native/module-trading":
version: 0.0.0-use.local
resolution: "@suite-native/module-trading@workspace:suite-native/module-trading"
dependencies:
Expand Down

0 comments on commit c127ab4

Please sign in to comment.