refactor(GlobalStateStoreProvider): update type definitions for session handlers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user