Skip to content

Commit 30c35a3

Browse files
authored
fix(types): loading state source unresolved any (#360)
1 parent 5380dc3 commit 30c35a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

types.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { EvaluationContext, IdentityEvaluationContext, TraitEvaluationContext } from "./evaluation-context";
2+
import { FlagSource } from "./flagsmith-core";
23

34
type IFlagsmithValue<T = string | number | boolean | null> = T
45

@@ -84,13 +85,13 @@ export type ISentryClient = {
8485
} | undefined;
8586

8687

87-
export { FlagSource } from './flagsmith-core';
88+
export { FlagSource };
8889

8990
export declare type LoadingState = {
9091
error: Error | null, // Current error, resets on next attempt to fetch flags
9192
isFetching: boolean, // Whether there is a current request to fetch server flags
9293
isLoading: boolean, // Whether any flag data exists
93-
source: FlagSource //Indicates freshness of flags
94+
source: FlagSource // Indicates freshness of flags
9495
}
9596

9697
export type OnChange<F extends string = string> = (previousFlags: IFlags<FKey<F>> | null, params: IRetrieveInfo, loadingState:LoadingState) => void

0 commit comments

Comments
 (0)