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