@@ -45,13 +45,13 @@ const immer = new Immer()
45
45
* @param {Function } patchListener - optional function that will be called with all the patches produced here
46
46
* @returns {any } a new state, or the initial state if nothing was modified
47
47
*/
48
- export const produce : IProduce = immer . produce
48
+ export const produce : IProduce = /* @__PURE__ */ immer . produce
49
49
50
50
/**
51
51
* Like `produce`, but `produceWithPatches` always returns a tuple
52
52
* [nextState, patches, inversePatches] (instead of just the next state)
53
53
*/
54
- export const produceWithPatches : IProduceWithPatches = immer . produceWithPatches . bind (
54
+ export const produceWithPatches : IProduceWithPatches = /* @__PURE__ */ immer . produceWithPatches . bind (
55
55
immer
56
56
)
57
57
@@ -60,27 +60,29 @@ export const produceWithPatches: IProduceWithPatches = immer.produceWithPatches.
60
60
*
61
61
* Always freeze by default, even in production mode
62
62
*/
63
- export const setAutoFreeze = immer . setAutoFreeze . bind ( immer )
63
+ export const setAutoFreeze = /* @__PURE__ */ immer . setAutoFreeze . bind ( immer )
64
64
65
65
/**
66
66
* Pass true to enable strict shallow copy.
67
67
*
68
68
* By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
69
69
*/
70
- export const setUseStrictShallowCopy = immer . setUseStrictShallowCopy . bind ( immer )
70
+ export const setUseStrictShallowCopy = /* @__PURE__ */ immer . setUseStrictShallowCopy . bind (
71
+ immer
72
+ )
71
73
72
74
/**
73
75
* Apply an array of Immer patches to the first argument.
74
76
*
75
77
* This function is a producer, which means copy-on-write is in effect.
76
78
*/
77
- export const applyPatches = immer . applyPatches . bind ( immer )
79
+ export const applyPatches = /* @__PURE__ */ immer . applyPatches . bind ( immer )
78
80
79
81
/**
80
82
* Create an Immer draft from the given base state, which may be a draft itself.
81
83
* The draft can be modified until you finalize it with the `finishDraft` function.
82
84
*/
83
- export const createDraft = immer . createDraft . bind ( immer )
85
+ export const createDraft = /* @__PURE__ */ immer . createDraft . bind ( immer )
84
86
85
87
/**
86
88
* Finalize an Immer draft from a `createDraft` call, returning the base state
@@ -90,7 +92,7 @@ export const createDraft = immer.createDraft.bind(immer)
90
92
* Pass a function as the 2nd argument to generate Immer patches based on the
91
93
* changes that were made.
92
94
*/
93
- export const finishDraft = immer . finishDraft . bind ( immer )
95
+ export const finishDraft = /* @__PURE__ */ immer . finishDraft . bind ( immer )
94
96
95
97
/**
96
98
* This function is actually a no-op, but can be used to cast an immutable type
0 commit comments