Skip to content

Latest commit

 

History

History
68 lines (38 loc) · 1.41 KB

Options.md

File metadata and controls

68 lines (38 loc) · 1.41 KB

mutative / Options

Interface: Options<O, F>

Type parameters

Name Type
O extends PatchesOptions
F extends boolean

Table of contents

Properties

Properties

enableAutoFreeze

Optional enableAutoFreeze: F

Enable autoFreeze, and return frozen state.

Defined in

interface.ts:122


enablePatches

Optional enablePatches: O

Enable patch, and return the patches and inversePatches.

Defined in

interface.ts:118


mark

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).

Defined in

interface.ts:127


strict

Optional strict: boolean

In strict mode, Forbid accessing non-draftable values and forbid returning a non-draft value.

Defined in

interface.ts:114