UNPKG

491 BTypeScriptView Raw
1import { UseQueryOptions, UseQueryResult } 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?: UseQueryOptions<CurrentUser, unknown>
19): UseQueryResult<CurrentUser, unknown>;
20
21export default useCurrentUser;