From 8c305c1d190cc8071452747af4fa216ae9806458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Loureiro?= <175489935+joaoloureirop@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:17:44 +0000 Subject: [PATCH] improve minimumAppVersion TS types --- app/selectors/featureFlagController/minimumAppVersion/types.ts | 2 +- app/selectors/featureFlagController/mocks.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/selectors/featureFlagController/minimumAppVersion/types.ts b/app/selectors/featureFlagController/minimumAppVersion/types.ts index 0368ba74095..babfb729ad9 100644 --- a/app/selectors/featureFlagController/minimumAppVersion/types.ts +++ b/app/selectors/featureFlagController/minimumAppVersion/types.ts @@ -1,7 +1,7 @@ export const FEATURE_FLAG_NAME = 'mobileMinimumVersions'; export interface FeatureFlagType { - [FEATURE_FLAG_NAME]: { + [featureFlagName: string]: { appMinimumBuild: number; appleMinimumOS: number; androidMinimumAPIVersion: number; diff --git a/app/selectors/featureFlagController/mocks.ts b/app/selectors/featureFlagController/mocks.ts index 8672e38fb79..84c97da5d03 100644 --- a/app/selectors/featureFlagController/mocks.ts +++ b/app/selectors/featureFlagController/mocks.ts @@ -7,7 +7,7 @@ export const mockedState = { RemoteFeatureFlagController: { remoteFeatureFlags: [ mockedMinimumAppVersion - ], + ] as FeatureFlags, cacheTimestamp: 0, }, },