We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eed1e0 commit 8dc35f3Copy full SHA for 8dc35f3
packages/mobx-state-tree/src/types/utility-types/custom.ts
@@ -14,7 +14,7 @@ export interface CustomTypeOptions<S, T> {
14
/** Friendly name */
15
name: string
16
/** given a serialized value and environment, how to turn it into the target type */
17
- fromSnapshot(snapshot: S, env: any): T
+ fromSnapshot(snapshot: S, env?: any): T
18
/** return the serialization of the current value */
19
toSnapshot(value: T): S
20
/** if true, this is a converted value, if false, it's a snapshot */
0 commit comments