We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c8f527 commit 309c81aCopy full SHA for 309c81a
types.d.ts
@@ -96,7 +96,7 @@ export type ApplicationMetadata = {
96
version?: string;
97
}
98
99
-export interface IInitConfig<F extends string = string, T extends string = string> {
+export interface IInitConfig<F extends string | Record<string, any> = string, T extends string = string> {
100
AsyncStorage?: any;
101
api?: string;
102
evaluationContext?: ClientEvaluationContext;
@@ -168,7 +168,7 @@ T extends string = string
168
/**
169
* Initialise the sdk against a particular environment
170
*/
171
- init: (config: IInitConfig<F, T>) => Promise<void>;
+ init: (config: IInitConfig<FKey<F>, T>) => Promise<void>;
172
173
* Set evaluation context. Refresh the flags.
174
0 commit comments