From c127ab48231323b384e76d9adc31b6a785578fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jirka=20Ba=C5=BEant?= Date: Fri, 24 Jan 2025 12:27:53 +0100 Subject: [PATCH] chore(suite-native): add redux.d.ts to @suite-native/mobile --- suite-native/accounts/package.json | 1 + suite-native/accounts/redux.d.ts | 7 +++++++ yarn.lock | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 suite-native/accounts/redux.d.ts diff --git a/suite-native/accounts/package.json b/suite-native/accounts/package.json index 4bcefd84231..dca4445690d 100644 --- a/suite-native/accounts/package.json +++ b/suite-native/accounts/package.json @@ -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:*", diff --git a/suite-native/accounts/redux.d.ts b/suite-native/accounts/redux.d.ts new file mode 100644 index 00000000000..df9a0c3f969 --- /dev/null +++ b/suite-native/accounts/redux.d.ts @@ -0,0 +1,7 @@ +import { AsyncThunkAction } from '@reduxjs/toolkit'; + +declare module 'redux' { + export interface Dispatch { + >(thunk: TThunk): ReturnType; + } +} diff --git a/yarn.lock b/yarn.lock index d50c7e33108..4eba52ade40 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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:*" @@ -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:*" @@ -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: