createDraftSafeSelector.d.ts 611 B

12345678910
  1. import { createSelectorCreator, weakMapMemoize } from 'reselect';
  2. export declare const createDraftSafeSelectorCreator: typeof createSelectorCreator;
  3. /**
  4. * "Draft-Safe" version of `reselect`'s `createSelector`:
  5. * If an `immer`-drafted object is passed into the resulting selector's first argument,
  6. * the selector will act on the current draft value, instead of returning a cached value
  7. * that might be possibly outdated if the draft has been modified since.
  8. * @public
  9. */
  10. export declare const createDraftSafeSelector: import("reselect").CreateSelectorFunction<typeof weakMapMemoize, typeof weakMapMemoize>;