Skip to content

Commit 78d562f

Browse files
committed
chore: build
1 parent 7965dbc commit 78d562f

File tree

8 files changed

+452
-0
lines changed

8 files changed

+452
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as React from "react";
2+
import type { Experiment, Result, JSONValue, FeatureDefinition, WidenPrimitives } from "@growthbook/growthbook";
3+
import { GrowthBook } from "@growthbook/growthbook";
4+
export declare type GrowthBookContextValue = {
5+
growthbook?: GrowthBook;
6+
};
7+
export interface WithRunExperimentProps {
8+
runExperiment: <T>(exp: Experiment<T>) => Result<T>;
9+
}
10+
export declare type GrowthBookSSRData = {
11+
attributes: Record<string, any>;
12+
features: Record<string, FeatureDefinition>;
13+
};
14+
export declare const GrowthBookContext: React.Context<GrowthBookContextValue>;
15+
export declare function useFeatureIsOn<AppFeatures extends Record<string, any> = Record<string, any>>(id: string & keyof AppFeatures): boolean;
16+
export declare function useFeatureValue<T extends JSONValue = any>(id: string, fallback: T): WidenPrimitives<T>;
17+
export declare function useGrowthBook<AppFeatures extends Record<string, any> = Record<string, any>>(): GrowthBook<AppFeatures> | undefined;
18+
export declare const GrowthBookProvider: React.FC<React.PropsWithChildren<{
19+
growthbook?: GrowthBook;
20+
}>>;
21+
//# sourceMappingURL=GrowthBookReact.d.ts.map

packages/sdk-react/dist/GrowthBookReact.d.ts.map

+1
Original file line numberDiff line numberDiff line change

packages/sdk-react/dist/cjs/index.js

+227
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sdk-react/dist/cjs/index.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)