Skip to content

Commit

Permalink
Correct feature flag type
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen committed Sep 7, 2023
1 parent d8a21e1 commit 73936c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/hooks/useFeatureFlag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,5 @@ export {
isFeatureFlagEnabledInCookies,
useFeatureFlag,
};

export type { FeatureFlagName };
4 changes: 2 additions & 2 deletions src/redirects.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FeatureFlags } from './hooks/useFeatureFlag';
import { FeatureFlagName, FeatureFlags } from './hooks/useFeatureFlag';
import type { SupportedLanguages } from './i18n';
import type { Values } from './types/Values';

Expand Down Expand Up @@ -43,7 +43,7 @@ const getRedirects = (
environment: Environment,
language: Values<typeof SupportedLanguages> = 'nl',
): {
featureFlag?: string;
featureFlag?: FeatureFlagName;
permanent: boolean;
destination: string;
source: string;
Expand Down

0 comments on commit 73936c4

Please sign in to comment.