From 8ff2e28827e67514bd755d9d3a0e4abfa302127a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20H=C3=B6rmann?= Date: Tue, 18 Nov 2025 11:18:17 +0100 Subject: [PATCH] fix(types): loading state source unresolved any --- types.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types.d.ts b/types.d.ts index d72e17e..f6c8f8d 100644 --- a/types.d.ts +++ b/types.d.ts @@ -1,4 +1,5 @@ import { EvaluationContext, IdentityEvaluationContext, TraitEvaluationContext } from "./evaluation-context"; +import { FlagSource } from "./flagsmith-core"; type IFlagsmithValue = T @@ -84,13 +85,13 @@ export type ISentryClient = { } | undefined; -export { FlagSource } from './flagsmith-core'; +export { FlagSource }; export declare type LoadingState = { error: Error | null, // Current error, resets on next attempt to fetch flags isFetching: boolean, // Whether there is a current request to fetch server flags isLoading: boolean, // Whether any flag data exists - source: FlagSource //Indicates freshness of flags + source: FlagSource // Indicates freshness of flags } export type OnChange = (previousFlags: IFlags> | null, params: IRetrieveInfo, loadingState:LoadingState) => void