Skip to content

Commit 8bc9130

Browse files
authored
fix(react-sdk): Relax bootstrapped types (#564)
We were too strict about the bootstrapped flag type which made it harder to use.
1 parent 9a738d4 commit 8bc9130

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.changeset/small-monkeys-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@reflag/react-sdk": patch
3+
---
4+
5+
Relaxed types for bootstrapping

packages/react-sdk/src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
InitOptions,
1818
Logger,
1919
RawFlag,
20+
RawFlags as BrowserRawFlags,
2021
ReflagClient,
2122
ReflagContext,
2223
RequestFeedbackData,
@@ -132,7 +133,7 @@ export type RawFlags = Record<FlagKey, RawFlag>;
132133

133134
export type BootstrappedFlags = {
134135
context: ReflagContext;
135-
flags: RawFlags;
136+
flags: BrowserRawFlags;
136137
};
137138

138139
const SDK_VERSION = `react-sdk/${version}`;

0 commit comments

Comments
 (0)