refactor(GlobalStateStoreProvider): update type definitions for session handlers
This commit is contained in:
@@ -25,9 +25,9 @@ interface GlobalStateStoreProviderProps {
|
|||||||
autoFetch?: boolean;
|
autoFetch?: boolean;
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
fetchOnMount?: boolean;
|
fetchOnMount?: boolean;
|
||||||
onFetchSession?: (state: GlobalState) => Promise<Partial<GlobalState>>;
|
onFetchSession?: (state: Partial<GlobalState>) => Promise<Partial<GlobalState>>;
|
||||||
onLogin?: (state: GlobalState) => Promise<void>;
|
onLogin?: (state: Partial<GlobalState>) => Promise<Partial<GlobalState>>;
|
||||||
onLogout?: (state: GlobalState) => Promise<void>;
|
onLogout?: (state: Partial<GlobalState>) => Promise<Partial<GlobalState>>;
|
||||||
program?: Partial<ProgramState>;
|
program?: Partial<ProgramState>;
|
||||||
throttleMs?: number;
|
throttleMs?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user