UNPKG

decent-sdk

Version:

SDK for the Decent API

13 lines (12 loc) 425 B
import { User } from '../../core/types/Api'; import { QueryReturn } from '../types'; type FetchMeResult = QueryReturn<User> & { refetch: () => Promise<User | undefined>; }; /** * React hook to fetch the currently authenticated user. * * @returns {FetchMeResult} Object with { data: User, isLoading: boolean, error: Error | null, refetch: Function } */ export declare const useFetchMe: () => FetchMeResult; export {};