mobx-state-tree
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -435,3 +435,3 @@ import { IAnyStateTreeNode, IType, IAnyModelType, IStateTreeNode, IJsonPatch, IDisposer, IAnyType, ReferenceIdentifier, TypeOfValue, IActionContext, IAnyComplexType } from "../internal"; | ||
* // this will allow the compiler to use a model as if it were a reference snapshot | ||
* const b = ModelB.create({ refA: castToReference(a)}) | ||
* const b = ModelB.create({ refA: castToReferenceSnapshot(a)}) | ||
* ``` | ||
@@ -438,0 +438,0 @@ * |
@@ -38,5 +38,7 @@ import { IType, IAnyType, IAnyStateTreeNode, IAnyComplexType, IMaybe, ReferenceIdentifier, IStateTreeNode } from "../../internal"; | ||
acceptsUndefined: false; | ||
onInvalidated?: OnReferenceInvalidated<ReferenceT<IT>>; | ||
}): IReferenceType<IT>; | ||
export declare function safeReference<IT extends IAnyComplexType>(subType: IT, options?: (ReferenceOptionsGetSet<IT> | {}) & { | ||
acceptsUndefined?: boolean; | ||
onInvalidated?: OnReferenceInvalidated<ReferenceT<IT>>; | ||
}): IMaybe<IReferenceType<IT>>; |
{ | ||
"name": "mobx-state-tree", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Opinionated, transactional, MobX powered state container", | ||
@@ -89,3 +89,3 @@ "main": "dist/mobx-state-tree.js", | ||
], | ||
"gitHead": "ffefd8e3d6704d240bdc2c1579b2434aad5fa3a2" | ||
"gitHead": "c0e1188298e789f810b576681ac578b94c268035" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1240756
27700