Typescript
Mutative support is built into the typescript types. You can use the Draft<T>
and Immutable<T>
types to annotate your code.
Using TypeScript
castDraft()
castImmutable()
Draft<T>
Immutable<T>
Patches
Patch
Options<O, F>
Mutative support is built into the typescript types. You can use the Draft<T>
and Immutable<T>
types to annotate your code.
castDraft()
castImmutable()
Draft<T>
Immutable<T>
Patches
Patch
Options<O, F>