mutative / Options
Name | Type |
---|---|
O |
extends PatchesOptions |
F |
extends boolean |
• Optional
enableAutoFreeze: F
Enable autoFreeze, and return frozen state.
• Optional
enablePatches: O
Enable patch, and return the patches and inversePatches.
• Optional
mark: Mark
<O
, F
>
Set a mark to determine if the object is mutable or if an instance is an immutable. And it can also return a shallow copy function(AutoFreeze and Patches should both be disabled).
• Optional
strict: boolean
In strict mode, Forbid accessing non-draftable values and forbid returning a non-draft value.