Skip to content

Commit

Permalink
wallet-ext: avoid importing internal types from GrowthBook (MystenLab…
Browse files Browse the repository at this point in the history
  • Loading branch information
666lcz authored Oct 14, 2022
1 parent 9633651 commit 1b42c41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/wallet/src/ui/app/experimentation/feature-gating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import { GrowthBook } from '@growthbook/growthbook';

import type { JSONValue } from '@growthbook/growthbook';
import type { WidenPrimitives } from '@growthbook/growthbook/dist/types/growthbook';

const GROWTHBOOK_API_KEY =
process.env.NODE_ENV === 'production'
Expand Down Expand Up @@ -47,7 +46,7 @@ export default class FeatureGating {
public getFeatureValue<T extends JSONValue>(
featureName: string,
defaultValue: T
): WidenPrimitives<T> {
) {
return this.#growthBook.getFeatureValue(featureName, defaultValue);
}
}

0 comments on commit 1b42c41

Please sign in to comment.