ISnapshotProcessors
mobx-state-tree - v7.0.2 › ISnapshotProcessors
Snapshot processors.
Type parameters
▪ IT: IAnyType
▪ CustomC
▪ CustomS
Hierarchy
- ISnapshotProcessors
Index
Methods
Methods
Optional postProcessor
▸ postProcessor(snapshot: IT["SnapshotType"], node: Instance‹IT›): _CustomOrOther‹CustomS, IT["SnapshotType"]›
Defined in src/types/utility-types/snapshotProcessor.ts:230
Function that transforms an output snapshot.
Parameters:
| Name | Type | Description |
|---|---|---|
snapshot | IT["SnapshotType"] | |
node | Instance‹IT› | - |
Returns: _CustomOrOther‹CustomS, IT["SnapshotType"]›
Optional preProcessor
▸ preProcessor(snapshot: _CustomOrOther‹CustomC, IT["CreationType"]›): IT["CreationType"]
Defined in src/types/utility-types/snapshotProcessor.ts:224
Function that transforms an input snapshot.
Parameters:
| Name | Type |
|---|---|
snapshot | _CustomOrOther‹CustomC, IT["CreationType"]› |
Returns: IT["CreationType"]