global-state.d.ts 376 B

123456789
  1. import { Cache, ScopedMutator, RevalidateCallback, StateUpdateCallback } from '../types';
  2. export declare type GlobalState = [
  3. Record<string, RevalidateCallback[]>,
  4. Record<string, StateUpdateCallback[]>,
  5. Record<string, [number, number]>,
  6. Record<string, [any, number]>,
  7. ScopedMutator
  8. ];
  9. export declare const SWRGlobalState: WeakMap<Cache<any>, GlobalState>;