UNPKG

477 BTypeScriptView Raw
1import { QueryConfig, QueryResult } from 'react-query';
2
3export type CurrentUser = {
4 akaname: string;
5 createDate: string;
6 currentRegion: string;
7 email: string;
8 firstName: string;
9 lastName: string;
10 id: string;
11 jobTitle: string;
12 userHasSecurityException: boolean;
13 userId: string;
14 userValidated: boolean;
15};
16
17declare function useCurrentUser(
18 options?: QueryConfig<CurrentUser, unknown>
19): QueryResult<CurrentUser, unknown>;
20
21export default useCurrentUser;