config-context.d.ts 401 B

123456789
  1. import { FC } from 'react';
  2. import { SWRConfiguration, FullConfiguration, ProviderConfiguration, Cache } from '../types';
  3. export declare const SWRConfigContext: import("react").Context<Partial<FullConfiguration>>;
  4. declare const SWRConfig: FC<{
  5. value?: SWRConfiguration & Partial<ProviderConfiguration> & {
  6. provider?: (cache: Readonly<Cache>) => Cache;
  7. };
  8. }>;
  9. export default SWRConfig;