index.d.ts 429 B

123456
  1. import useSWR from './use-swr';
  2. export default useSWR;
  3. export { SWRConfig, unstable_serialize } from './use-swr';
  4. export { useSWRConfig } from './utils/use-swr-config';
  5. export { mutate } from './utils/config';
  6. export type { SWRConfiguration, Revalidator, RevalidatorOptions, Key, KeyLoader, KeyedMutator, SWRResponse, Cache, SWRHook, BareFetcher, Fetcher, MutatorCallback, MutatorOptions, Middleware, Arguments } from './types';