env.d.ts 906 B

1234567891011121314151617181920212223
  1. export declare const hasMap: boolean;
  2. export declare const hasSet: boolean;
  3. export declare const hasProxies: boolean;
  4. /**
  5. * The sentinel value returned by producers to replace the draft with undefined.
  6. */
  7. export declare const NOTHING: Nothing;
  8. /**
  9. * To let Immer treat your class instances as plain immutable objects
  10. * (albeit with a custom prototype), you must define either an instance property
  11. * or a static property on each of your custom classes.
  12. *
  13. * Otherwise, your class instance will never be drafted, which means it won't be
  14. * safe to mutate in a produce callback.
  15. */
  16. export declare const DRAFTABLE: unique symbol;
  17. export declare const DRAFT_STATE: unique symbol;
  18. export declare const iteratorSymbol: typeof Symbol.iterator;
  19. /** Use a class type for `nothing` so its type is unique */
  20. export declare class Nothing {
  21. private _;
  22. }
  23. //# sourceMappingURL=env.d.ts.map