refactor(GlobalStateStoreProvider): update type definitions for session handlers

This commit is contained in:
2026-02-07 21:31:16 +02:00
parent 690cb22306
commit b521d04cd0

View File

@@ -25,9 +25,9 @@ interface GlobalStateStoreProviderProps {
autoFetch?: boolean;
children: ReactNode;
fetchOnMount?: boolean;
onFetchSession?: (state: GlobalState) => Promise<Partial<GlobalState>>;
onLogin?: (state: GlobalState) => Promise<void>;
onLogout?: (state: GlobalState) => Promise<void>;
onFetchSession?: (state: Partial<GlobalState>) => Promise<Partial<GlobalState>>;
onLogin?: (state: Partial<GlobalState>) => Promise<Partial<GlobalState>>;
onLogout?: (state: Partial<GlobalState>) => Promise<Partial<GlobalState>>;
program?: Partial<ProgramState>;
throttleMs?: number;
}