swr
Version:
React Hooks library for remote data fetching
7 lines (6 loc) • 500 B
TypeScript
import { default as useSWR } from './use-swr';
export default useSWR;
export * from './use-swr';
export { useSWRInfinite } from './use-swr-infinite';
export { cache } from './config';
export { SWRConfiguration, SWRInfiniteConfiguration, SWRInfiniteResponse, Revalidator, RevalidatorOptions, Key, SWRResponse, Cache, ConfigInterface, SWRInfiniteConfigInterface, SWRInfiniteResponseInterface, revalidateType, RevalidateOptionInterface, keyInterface, responseInterface, CacheInterface } from './types';