Skip to content

Commit 8dc35f3

Browse files
committed
fix(CustomTypeOptions): keep api backward-compatible
1 parent 0eed1e0 commit 8dc35f3

File tree

1 file changed

+1
-1
lines changed
  • packages/mobx-state-tree/src/types/utility-types

1 file changed

+1
-1
lines changed

packages/mobx-state-tree/src/types/utility-types/custom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface CustomTypeOptions<S, T> {
1414
/** Friendly name */
1515
name: string
1616
/** given a serialized value and environment, how to turn it into the target type */
17-
fromSnapshot(snapshot: S, env: any): T
17+
fromSnapshot(snapshot: S, env?: any): T
1818
/** return the serialization of the current value */
1919
toSnapshot(value: T): S
2020
/** if true, this is a converted value, if false, it's a snapshot */

0 commit comments

Comments
 (0)