diff --git a/docs/API/index.md b/docs/API/index.md index fe0f305fb..721e6f642 100644 --- a/docs/API/index.md +++ b/docs/API/index.md @@ -1,10 +1,10 @@ --- id: "index" -title: "mobx-state-tree - v5.4.2-pre.1" +title: "mobx-state-tree - v6.0.0" sidebar_label: "Globals" --- -[mobx-state-tree - v5.4.2-pre.1](index.md) +[mobx-state-tree - v6.0.0](index.md) ## Index @@ -178,7 +178,7 @@ sidebar_label: "Globals" Ƭ **IDisposer**: *function* -*Defined in [src/utils.ts:41](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/utils.ts#L41)* +*Defined in [src/utils.ts:41](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/utils.ts#L41)* A generic disposer. @@ -192,7 +192,7 @@ ___ Ƭ **IHooksGetter**: *function* -*Defined in [src/core/node/Hook.ts:19](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/node/Hook.ts#L19)* +*Defined in [src/core/node/Hook.ts:19](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/node/Hook.ts#L19)* #### Type declaration: @@ -210,7 +210,7 @@ ___ Ƭ **IMiddlewareEventType**: *"action" | "flow_spawn" | "flow_resume" | "flow_resume_error" | "flow_return" | "flow_throw"* -*Defined in [src/core/action.ts:16](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L16)* +*Defined in [src/core/action.ts:16](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L16)* ___ @@ -218,7 +218,7 @@ ___ Ƭ **IMiddlewareHandler**: *function* -*Defined in [src/core/action.ts:54](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L54)* +*Defined in [src/core/action.ts:54](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L54)* #### Type declaration: @@ -255,7 +255,7 @@ ___ Ƭ **ITypeDispatcher**: *function* -*Defined in [src/types/utility-types/union.ts:22](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/union.ts#L22)* +*Defined in [src/types/utility-types/union.ts:22](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/union.ts#L22)* #### Type declaration: @@ -273,7 +273,7 @@ ___ Ƭ **IValidationContext**: *[IValidationContextEntry](interfaces/ivalidationcontextentry.md)[]* -*Defined in [src/core/type/type-checker.ts:23](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type-checker.ts#L23)* +*Defined in [src/core/type/type-checker.ts:23](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type-checker.ts#L23)* Array of validation context entries @@ -283,7 +283,7 @@ ___ Ƭ **IValidationResult**: *[IValidationError](interfaces/ivalidationerror.md)[]* -*Defined in [src/core/type/type-checker.ts:36](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type-checker.ts#L36)* +*Defined in [src/core/type/type-checker.ts:36](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type-checker.ts#L36)* Type validation result, which is an array of type validation errors @@ -293,7 +293,7 @@ ___ Ƭ **Instance**: *T extends object ? T["Type"] : T* -*Defined in [src/core/type/type.ts:230](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L230)* +*Defined in [src/core/type/type.ts:230](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L230)* The instance representation of a given type. @@ -303,7 +303,7 @@ ___ Ƭ **LivelinessMode**: *"warn" | "error" | "ignore"* -*Defined in [src/core/node/livelinessChecking.ts:7](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/node/livelinessChecking.ts#L7)* +*Defined in [src/core/node/livelinessChecking.ts:7](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/node/livelinessChecking.ts#L7)* Defines what MST should do when running into reads / writes to objects that have died. - `"warn"`: Print a warning (default). @@ -316,7 +316,7 @@ ___ Ƭ **OnReferenceInvalidated**: *function* -*Defined in [src/types/utility-types/reference.ts:43](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/reference.ts#L43)* +*Defined in [src/types/utility-types/reference.ts:43](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/reference.ts#L43)* #### Type declaration: @@ -334,7 +334,7 @@ ___ Ƭ **OnReferenceInvalidatedEvent**: *object* -*Defined in [src/types/utility-types/reference.ts:34](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/reference.ts#L34)* +*Defined in [src/types/utility-types/reference.ts:34](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/reference.ts#L34)* #### Type declaration: @@ -344,7 +344,7 @@ ___ Ƭ **ReferenceIdentifier**: *string | number* -*Defined in [src/types/utility-types/identifier.ts:142](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/identifier.ts#L142)* +*Defined in [src/types/utility-types/identifier.ts:144](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/identifier.ts#L144)* Valid types for identifiers. @@ -354,7 +354,7 @@ ___ Ƭ **ReferenceOptions**: *[ReferenceOptionsGetSet](interfaces/referenceoptionsgetset.md)‹IT› | [ReferenceOptionsOnInvalidated](interfaces/referenceoptionsoninvalidated.md)‹IT› | [ReferenceOptionsGetSet](interfaces/referenceoptionsgetset.md)‹IT› & [ReferenceOptionsOnInvalidated](interfaces/referenceoptionsoninvalidated.md)‹IT›* -*Defined in [src/types/utility-types/reference.ts:451](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/reference.ts#L451)* +*Defined in [src/types/utility-types/reference.ts:451](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/reference.ts#L451)* ___ @@ -362,7 +362,7 @@ ___ Ƭ **SnapshotIn**: *T extends object ? T["CreationType"] : T extends IStateTreeNode ? IT["CreationType"] : T* -*Defined in [src/core/type/type.ts:235](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L235)* +*Defined in [src/core/type/type.ts:235](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L235)* The input (creation) snapshot representation of a given type. @@ -372,7 +372,7 @@ ___ Ƭ **SnapshotOrInstance**: *[SnapshotIn](index.md#snapshotin)‹T› | [Instance](index.md#instance)‹T›* -*Defined in [src/core/type/type.ts:276](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L276)* +*Defined in [src/core/type/type.ts:276](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L276)* A type which is equivalent to the union of SnapshotIn and Instance types of a given typeof TYPE or typeof VARIABLE. For primitives it defaults to the primitive itself. @@ -405,7 +405,7 @@ ___ Ƭ **SnapshotOut**: *T extends object ? T["SnapshotType"] : T extends IStateTreeNode ? IT["SnapshotType"] : T* -*Defined in [src/core/type/type.ts:244](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L244)* +*Defined in [src/core/type/type.ts:244](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L244)* The output snapshot representation of a given type. @@ -415,7 +415,7 @@ The output snapshot representation of a given type. • **DatePrimitive**: *[IType](interfaces/itype.md)‹number | Date, number, Date›* = _DatePrimitive -*Defined in [src/types/primitives.ts:215](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/primitives.ts#L215)* +*Defined in [src/types/primitives.ts:215](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/primitives.ts#L215)* `types.Date` - Creates a type that can only contain a javascript Date value. @@ -438,7 +438,7 @@ ___ (v) => typeof v === "boolean" ) -*Defined in [src/types/primitives.ts:169](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/primitives.ts#L169)* +*Defined in [src/types/primitives.ts:169](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/primitives.ts#L169)* `types.boolean` - Creates a type that can only contain a boolean value. This type is used for boolean values by default @@ -461,7 +461,7 @@ ___ (v) => isFinite(v) ) -*Defined in [src/types/primitives.ts:150](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/primitives.ts#L150)* +*Defined in [src/types/primitives.ts:150](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/primitives.ts#L150)* `types.finite` - Creates a type that can only contain an finite value. @@ -483,7 +483,7 @@ ___ (v) => isFloat(v) ) -*Defined in [src/types/primitives.ts:132](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/primitives.ts#L132)* +*Defined in [src/types/primitives.ts:132](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/primitives.ts#L132)* `types.float` - Creates a type that can only contain an float value. @@ -501,7 +501,7 @@ ___ • **identifier**: *[ISimpleType](interfaces/isimpletype.md)‹string›* = new IdentifierType() -*Defined in [src/types/utility-types/identifier.ts:110](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/identifier.ts#L110)* +*Defined in [src/types/utility-types/identifier.ts:112](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/identifier.ts#L112)* `types.identifier` - Identifiers are used to make references, lifecycle events and reconciling works. Inside a state tree, for each type can exist only one instance for each given identifier. @@ -525,7 +525,7 @@ ___ • **identifierNumber**: *[ISimpleType](interfaces/isimpletype.md)‹number›* = new IdentifierNumberType() -*Defined in [src/types/utility-types/identifier.ts:125](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/identifier.ts#L125)* +*Defined in [src/types/utility-types/identifier.ts:127](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/identifier.ts#L127)* `types.identifierNumber` - Similar to `types.identifier`. This one will serialize from / to a number when applying snapshots @@ -549,7 +549,7 @@ ___ (v) => isInteger(v) ) -*Defined in [src/types/primitives.ts:114](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/primitives.ts#L114)* +*Defined in [src/types/primitives.ts:114](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/primitives.ts#L114)* `types.integer` - Creates a type that can only contain an integer value. @@ -571,7 +571,7 @@ ___ (v) => v === null ) -*Defined in [src/types/primitives.ts:178](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/primitives.ts#L178)* +*Defined in [src/types/primitives.ts:178](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/primitives.ts#L178)* `types.null` - The type of the value `null` @@ -585,7 +585,7 @@ ___ (v) => typeof v === "number" ) -*Defined in [src/types/primitives.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/primitives.ts#L96)* +*Defined in [src/types/primitives.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/primitives.ts#L96)* `types.number` - Creates a type that can only contain a numeric value. This type is used for numeric values by default @@ -608,7 +608,7 @@ ___ (v) => typeof v === "string" ) -*Defined in [src/types/primitives.ts:77](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/primitives.ts#L77)* +*Defined in [src/types/primitives.ts:77](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/primitives.ts#L77)* `types.string` - Creates a type that can only contain a string value. This type is used for string values by default @@ -631,7 +631,7 @@ ___ (v) => v === undefined ) -*Defined in [src/types/primitives.ts:187](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/primitives.ts#L187)* +*Defined in [src/types/primitives.ts:187](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/primitives.ts#L187)* `types.undefined` - The type of the value `undefined` @@ -641,7 +641,7 @@ ___ ▸ **addDisposer**(`target`: IAnyStateTreeNode, `disposer`: [IDisposer](index.md#idisposer)): *[IDisposer](index.md#idisposer)* -*Defined in [src/core/mst-operations.ts:752](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L752)* +*Defined in [src/core/mst-operations.ts:751](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L751)* Use this utility to register a function that should be called whenever the targeted state tree node is destroyed. This is a useful alternative to managing @@ -683,7 +683,7 @@ ___ ▸ **addMiddleware**(`target`: IAnyStateTreeNode, `handler`: [IMiddlewareHandler](index.md#imiddlewarehandler), `includeHooks`: boolean): *[IDisposer](index.md#idisposer)* -*Defined in [src/core/action.ts:161](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L161)* +*Defined in [src/core/action.ts:161](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L161)* Middleware can be used to intercept any action is invoked on the subtree where it is attached. If a tree is protected (by default), this means that any mutation of the tree will pass through your middleware. @@ -708,7 +708,7 @@ ___ ▸ **applyAction**(`target`: IAnyStateTreeNode, `actions`: [ISerializedActionCall](interfaces/iserializedactioncall.md) | [ISerializedActionCall](interfaces/iserializedactioncall.md)[]): *void* -*Defined in [src/middlewares/on-action.ts:88](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L88)* +*Defined in [src/middlewares/on-action.ts:88](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L88)* Applies an action or a series of actions in a single MobX transaction. Does not return any value @@ -729,7 +729,7 @@ ___ ▸ **applyPatch**(`target`: IAnyStateTreeNode, `patch`: [IJsonPatch](interfaces/ijsonpatch.md) | ReadonlyArray‹[IJsonPatch](interfaces/ijsonpatch.md)›): *void* -*Defined in [src/core/mst-operations.ts:125](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L125)* +*Defined in [src/core/mst-operations.ts:124](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L124)* Applies a JSON-patch to the given model instance or bails out if the patch couldn't be applied See [patches](https://github.com/mobxjs/mobx-state-tree#patches) for more details. @@ -751,7 +751,7 @@ ___ ▸ **applySnapshot**<**C**>(`target`: IStateTreeNode‹[IType](interfaces/itype.md)‹C, any, any››, `snapshot`: C): *void* -*Defined in [src/core/mst-operations.ts:322](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L322)* +*Defined in [src/core/mst-operations.ts:321](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L321)* Applies a snapshot to a given model instances. Patch and snapshot listeners will be invoked as usual. @@ -774,7 +774,7 @@ ___ ▸ **array**<**IT**>(`subtype`: IT): *IArrayType‹IT›* -*Defined in [src/types/complex-types/array.ts:344](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/array.ts#L344)* +*Defined in [src/types/complex-types/array.ts:344](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/array.ts#L344)* `types.array` - Creates an index based collection type who's children are all of a uniform declared type. @@ -814,7 +814,7 @@ ___ ▸ **cast**<**O**>(`snapshotOrInstance`: O): *O* -*Defined in [src/core/mst-operations.ts:901](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L901)* +*Defined in [src/core/mst-operations.ts:908](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L908)* Casts a node snapshot or instance type to an instance type so it can be assigned to a type instance. Note that this is just a cast for the type system, this is, it won't actually convert a snapshot to an instance, @@ -857,7 +857,7 @@ The same object cast as an instance ▸ **cast**<**O**>(`snapshotOrInstance`: TypeOfValue["CreationType"] | TypeOfValue["SnapshotType"] | TypeOfValue["Type"]): *O* -*Defined in [src/core/mst-operations.ts:904](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L904)* +*Defined in [src/core/mst-operations.ts:911](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L911)* Casts a node snapshot or instance type to an instance type so it can be assigned to a type instance. Note that this is just a cast for the type system, this is, it won't actually convert a snapshot to an instance, @@ -904,7 +904,7 @@ ___ ▸ **castFlowReturn**<**T**>(`val`: T): *T* -*Defined in [src/core/flow.ts:34](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/flow.ts#L34)* +*Defined in [src/core/flow.ts:34](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/flow.ts#L34)* **`deprecated`** Not needed since TS3.6. Used for TypeScript to make flows that return a promise return the actual promise result. @@ -927,7 +927,7 @@ ___ ▸ **castToReferenceSnapshot**<**I**>(`instance`: I): *Extract extends never ? I : ReferenceIdentifier* -*Defined in [src/core/mst-operations.ts:1004](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L1004)* +*Defined in [src/core/mst-operations.ts:1011](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L1011)* Casts a node instance type to a reference snapshot type so it can be assigned to a reference snapshot (e.g. to be used inside a create call). Note that this is just a cast for the type system, this is, it won't actually convert an instance to a reference snapshot, @@ -973,7 +973,7 @@ ___ ▸ **castToSnapshot**<**I**>(`snapshotOrInstance`: I): *Extract extends never ? I : TypeOfValue["CreationType"]* -*Defined in [src/core/mst-operations.ts:970](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L970)* +*Defined in [src/core/mst-operations.ts:977](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L977)* Casts a node instance type to a snapshot type so it can be assigned to a type snapshot (e.g. to be used inside a create call). Note that this is just a cast for the type system, this is, it won't actually convert an instance to a snapshot, @@ -1018,7 +1018,7 @@ ___ ▸ **clone**<**T**>(`source`: T, `keepEnvironment`: boolean | any): *T* -*Defined in [src/core/mst-operations.ts:667](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L667)* +*Defined in [src/core/mst-operations.ts:666](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L666)* Returns a deep copy of the given state tree node as new tree. Shorthand for `snapshot(x) = getType(x).create(getSnapshot(x))` @@ -1044,7 +1044,7 @@ ___ ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**>(`name`: string, `A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›): *[IModelType](interfaces/imodeltype.md)‹PA & PB, OA & OB, _CustomJoin‹FCA, FCB›, _CustomJoin‹FSA, FSB››* -*Defined in [src/types/complex-types/model.ts:768](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L768)* +*Defined in [src/types/complex-types/model.ts:769](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L769)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1082,7 +1082,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**>(`A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›): *[IModelType](interfaces/imodeltype.md)‹PA & PB, OA & OB, _CustomJoin‹FCA, FCB›, _CustomJoin‹FSA, FSB››* -*Defined in [src/types/complex-types/model.ts:770](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L770)* +*Defined in [src/types/complex-types/model.ts:771](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L771)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1119,7 +1119,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**>(`name`: string, `A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC, OA & OB & OC, _CustomJoin‹FCA, _CustomJoin‹FCB, FCC››, _CustomJoin‹FSA, _CustomJoin‹FSB, FSC›››* -*Defined in [src/types/complex-types/model.ts:772](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L772)* +*Defined in [src/types/complex-types/model.ts:773](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L773)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1166,7 +1166,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**>(`A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC, OA & OB & OC, _CustomJoin‹FCA, _CustomJoin‹FCB, FCC››, _CustomJoin‹FSA, _CustomJoin‹FSB, FSC›››* -*Defined in [src/types/complex-types/model.ts:774](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L774)* +*Defined in [src/types/complex-types/model.ts:775](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L775)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1212,7 +1212,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**>(`name`: string, `A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD, OA & OB & OC & OD, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, FCD›››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, FSD››››* -*Defined in [src/types/complex-types/model.ts:776](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L776)* +*Defined in [src/types/complex-types/model.ts:777](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L777)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1268,7 +1268,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**>(`A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD, OA & OB & OC & OD, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, FCD›››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, FSD››››* -*Defined in [src/types/complex-types/model.ts:778](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L778)* +*Defined in [src/types/complex-types/model.ts:779](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L779)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1323,7 +1323,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**, **PE**, **OE**, **FCE**, **FSE**>(`name`: string, `A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›, `E`: [IModelType](interfaces/imodeltype.md)‹PE, OE, FCE, FSE›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD & PE, OA & OB & OC & OD & OE, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, _CustomJoin‹FCD, FCE››››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, _CustomJoin‹FSD, FSE›››››* -*Defined in [src/types/complex-types/model.ts:780](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L780)* +*Defined in [src/types/complex-types/model.ts:781](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L781)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1388,7 +1388,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**, **PE**, **OE**, **FCE**, **FSE**>(`A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›, `E`: [IModelType](interfaces/imodeltype.md)‹PE, OE, FCE, FSE›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD & PE, OA & OB & OC & OD & OE, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, _CustomJoin‹FCD, FCE››››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, _CustomJoin‹FSD, FSE›››››* -*Defined in [src/types/complex-types/model.ts:782](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L782)* +*Defined in [src/types/complex-types/model.ts:783](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L783)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1452,7 +1452,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**, **PE**, **OE**, **FCE**, **FSE**, **PF**, **OF**, **FCF**, **FSF**>(`name`: string, `A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›, `E`: [IModelType](interfaces/imodeltype.md)‹PE, OE, FCE, FSE›, `F`: [IModelType](interfaces/imodeltype.md)‹PF, OF, FCF, FSF›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD & PE & PF, OA & OB & OC & OD & OE & OF, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, _CustomJoin‹FCD, _CustomJoin‹FCE, FCF›››››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, _CustomJoin‹FSD, _CustomJoin‹FSE, FSF››››››* -*Defined in [src/types/complex-types/model.ts:786](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L786)* +*Defined in [src/types/complex-types/model.ts:787](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L787)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1526,7 +1526,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**, **PE**, **OE**, **FCE**, **FSE**, **PF**, **OF**, **FCF**, **FSF**>(`A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›, `E`: [IModelType](interfaces/imodeltype.md)‹PE, OE, FCE, FSE›, `F`: [IModelType](interfaces/imodeltype.md)‹PF, OF, FCF, FSF›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD & PE & PF, OA & OB & OC & OD & OE & OF, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, _CustomJoin‹FCD, _CustomJoin‹FCE, FCF›››››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, _CustomJoin‹FSD, _CustomJoin‹FSE, FSF››››››* -*Defined in [src/types/complex-types/model.ts:789](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L789)* +*Defined in [src/types/complex-types/model.ts:790](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L790)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1599,7 +1599,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**, **PE**, **OE**, **FCE**, **FSE**, **PF**, **OF**, **FCF**, **FSF**, **PG**, **OG**, **FCG**, **FSG**>(`name`: string, `A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›, `E`: [IModelType](interfaces/imodeltype.md)‹PE, OE, FCE, FSE›, `F`: [IModelType](interfaces/imodeltype.md)‹PF, OF, FCF, FSF›, `G`: [IModelType](interfaces/imodeltype.md)‹PG, OG, FCG, FSG›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD & PE & PF & PG, OA & OB & OC & OD & OE & OF & OG, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, _CustomJoin‹FCD, _CustomJoin‹FCE, _CustomJoin‹FCF, FCG››››››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, _CustomJoin‹FSD, _CustomJoin‹FSE, _CustomJoin‹FSF, FSG›››››››* -*Defined in [src/types/complex-types/model.ts:792](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L792)* +*Defined in [src/types/complex-types/model.ts:793](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L793)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1682,7 +1682,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**, **PE**, **OE**, **FCE**, **FSE**, **PF**, **OF**, **FCF**, **FSF**, **PG**, **OG**, **FCG**, **FSG**>(`A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›, `E`: [IModelType](interfaces/imodeltype.md)‹PE, OE, FCE, FSE›, `F`: [IModelType](interfaces/imodeltype.md)‹PF, OF, FCF, FSF›, `G`: [IModelType](interfaces/imodeltype.md)‹PG, OG, FCG, FSG›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD & PE & PF & PG, OA & OB & OC & OD & OE & OF & OG, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, _CustomJoin‹FCD, _CustomJoin‹FCE, _CustomJoin‹FCF, FCG››››››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, _CustomJoin‹FSD, _CustomJoin‹FSE, _CustomJoin‹FSF, FSG›››››››* -*Defined in [src/types/complex-types/model.ts:795](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L795)* +*Defined in [src/types/complex-types/model.ts:796](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L796)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1764,7 +1764,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**, **PE**, **OE**, **FCE**, **FSE**, **PF**, **OF**, **FCF**, **FSF**, **PG**, **OG**, **FCG**, **FSG**, **PH**, **OH**, **FCH**, **FSH**>(`name`: string, `A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›, `E`: [IModelType](interfaces/imodeltype.md)‹PE, OE, FCE, FSE›, `F`: [IModelType](interfaces/imodeltype.md)‹PF, OF, FCF, FSF›, `G`: [IModelType](interfaces/imodeltype.md)‹PG, OG, FCG, FSG›, `H`: [IModelType](interfaces/imodeltype.md)‹PH, OH, FCH, FSH›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD & PE & PF & PG & PH, OA & OB & OC & OD & OE & OF & OG & OH, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, _CustomJoin‹FCD, _CustomJoin‹FCE, _CustomJoin‹FCF, _CustomJoin‹FCG, FCH›››››››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, _CustomJoin‹FSD, _CustomJoin‹FSE, _CustomJoin‹FSF, _CustomJoin‹FSG, FSH››››››››* -*Defined in [src/types/complex-types/model.ts:798](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L798)* +*Defined in [src/types/complex-types/model.ts:799](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L799)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1856,7 +1856,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**, **PE**, **OE**, **FCE**, **FSE**, **PF**, **OF**, **FCF**, **FSF**, **PG**, **OG**, **FCG**, **FSG**, **PH**, **OH**, **FCH**, **FSH**>(`A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›, `E`: [IModelType](interfaces/imodeltype.md)‹PE, OE, FCE, FSE›, `F`: [IModelType](interfaces/imodeltype.md)‹PF, OF, FCF, FSF›, `G`: [IModelType](interfaces/imodeltype.md)‹PG, OG, FCG, FSG›, `H`: [IModelType](interfaces/imodeltype.md)‹PH, OH, FCH, FSH›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD & PE & PF & PG & PH, OA & OB & OC & OD & OE & OF & OG & OH, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, _CustomJoin‹FCD, _CustomJoin‹FCE, _CustomJoin‹FCF, _CustomJoin‹FCG, FCH›››››››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, _CustomJoin‹FSD, _CustomJoin‹FSE, _CustomJoin‹FSF, _CustomJoin‹FSG, FSH››››››››* -*Defined in [src/types/complex-types/model.ts:801](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L801)* +*Defined in [src/types/complex-types/model.ts:802](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L802)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -1947,7 +1947,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**, **PE**, **OE**, **FCE**, **FSE**, **PF**, **OF**, **FCF**, **FSF**, **PG**, **OG**, **FCG**, **FSG**, **PH**, **OH**, **FCH**, **FSH**, **PI**, **OI**, **FCI**, **FSI**>(`name`: string, `A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›, `E`: [IModelType](interfaces/imodeltype.md)‹PE, OE, FCE, FSE›, `F`: [IModelType](interfaces/imodeltype.md)‹PF, OF, FCF, FSF›, `G`: [IModelType](interfaces/imodeltype.md)‹PG, OG, FCG, FSG›, `H`: [IModelType](interfaces/imodeltype.md)‹PH, OH, FCH, FSH›, `I`: [IModelType](interfaces/imodeltype.md)‹PI, OI, FCI, FSI›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD & PE & PF & PG & PH & PI, OA & OB & OC & OD & OE & OF & OG & OH & OI, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, _CustomJoin‹FCD, _CustomJoin‹FCE, _CustomJoin‹FCF, _CustomJoin‹FCG, _CustomJoin‹FCH, FCI››››››››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, _CustomJoin‹FSD, _CustomJoin‹FSE, _CustomJoin‹FSF, _CustomJoin‹FSG, _CustomJoin‹FSH, FSI›››››››››* -*Defined in [src/types/complex-types/model.ts:804](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L804)* +*Defined in [src/types/complex-types/model.ts:805](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L805)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -2048,7 +2048,7 @@ Name | Type | ▸ **compose**<**PA**, **OA**, **FCA**, **FSA**, **PB**, **OB**, **FCB**, **FSB**, **PC**, **OC**, **FCC**, **FSC**, **PD**, **OD**, **FCD**, **FSD**, **PE**, **OE**, **FCE**, **FSE**, **PF**, **OF**, **FCF**, **FSF**, **PG**, **OG**, **FCG**, **FSG**, **PH**, **OH**, **FCH**, **FSH**, **PI**, **OI**, **FCI**, **FSI**>(`A`: [IModelType](interfaces/imodeltype.md)‹PA, OA, FCA, FSA›, `B`: [IModelType](interfaces/imodeltype.md)‹PB, OB, FCB, FSB›, `C`: [IModelType](interfaces/imodeltype.md)‹PC, OC, FCC, FSC›, `D`: [IModelType](interfaces/imodeltype.md)‹PD, OD, FCD, FSD›, `E`: [IModelType](interfaces/imodeltype.md)‹PE, OE, FCE, FSE›, `F`: [IModelType](interfaces/imodeltype.md)‹PF, OF, FCF, FSF›, `G`: [IModelType](interfaces/imodeltype.md)‹PG, OG, FCG, FSG›, `H`: [IModelType](interfaces/imodeltype.md)‹PH, OH, FCH, FSH›, `I`: [IModelType](interfaces/imodeltype.md)‹PI, OI, FCI, FSI›): *[IModelType](interfaces/imodeltype.md)‹PA & PB & PC & PD & PE & PF & PG & PH & PI, OA & OB & OC & OD & OE & OF & OG & OH & OI, _CustomJoin‹FCA, _CustomJoin‹FCB, _CustomJoin‹FCC, _CustomJoin‹FCD, _CustomJoin‹FCE, _CustomJoin‹FCF, _CustomJoin‹FCG, _CustomJoin‹FCH, FCI››››››››, _CustomJoin‹FSA, _CustomJoin‹FSB, _CustomJoin‹FSC, _CustomJoin‹FSD, _CustomJoin‹FSE, _CustomJoin‹FSF, _CustomJoin‹FSG, _CustomJoin‹FSH, FSI›››››››››* -*Defined in [src/types/complex-types/model.ts:807](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L807)* +*Defined in [src/types/complex-types/model.ts:808](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L808)* `types.compose` - Composes a new model from one or more existing model types. This method can be invoked in two forms: @@ -2152,7 +2152,7 @@ ___ ▸ **createActionTrackingMiddleware**<**T**>(`hooks`: [IActionTrackingMiddlewareHooks](interfaces/iactiontrackingmiddlewarehooks.md)‹T›): *[IMiddlewareHandler](index.md#imiddlewarehandler)* -*Defined in [src/middlewares/create-action-tracking-middleware.ts:28](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/create-action-tracking-middleware.ts#L28)* +*Defined in [src/middlewares/create-action-tracking-middleware.ts:28](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/create-action-tracking-middleware.ts#L28)* Note: Consider migrating to `createActionTrackingMiddleware2`, it is easier to use. @@ -2182,7 +2182,7 @@ ___ ▸ **createActionTrackingMiddleware2**<**TEnv**>(`middlewareHooks`: [IActionTrackingMiddleware2Hooks](interfaces/iactiontrackingmiddleware2hooks.md)‹TEnv›): *[IMiddlewareHandler](index.md#imiddlewarehandler)* -*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:74](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/createActionTrackingMiddleware2.ts#L74)* +*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:72](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/createActionTrackingMiddleware2.ts#L72)* Convenience utility to create action based middleware that supports async processes more easily. The flow is like this: @@ -2221,7 +2221,7 @@ ___ ▸ **custom**<**S**, **T**>(`options`: [CustomTypeOptions](interfaces/customtypeoptions.md)‹S, T›): *[IType](interfaces/itype.md)‹S | T, S, T›* -*Defined in [src/types/utility-types/custom.ts:74](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/custom.ts#L74)* +*Defined in [src/types/utility-types/custom.ts:74](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/custom.ts#L74)* `types.custom` - Creates a custom type. Custom types can be used for arbitrary immutable values, that have a serializable representation. For example, to create your own Date representation, Decimal type etc. @@ -2285,7 +2285,7 @@ ___ ▸ **decorate**<**T**>(`handler`: [IMiddlewareHandler](index.md#imiddlewarehandler), `fn`: T, `includeHooks`: boolean): *T* -*Defined in [src/core/action.ts:200](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L200)* +*Defined in [src/core/action.ts:200](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L200)* Binds middleware to a specific action. @@ -2326,7 +2326,7 @@ ___ ▸ **destroy**(`target`: IAnyStateTreeNode): *void* -*Defined in [src/core/mst-operations.ts:699](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L699)* +*Defined in [src/core/mst-operations.ts:698](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L698)* Removes a model element from the state tree, and mark it as end-of-life; the element should not be used anymore @@ -2344,7 +2344,7 @@ ___ ▸ **detach**<**T**>(`target`: T): *T* -*Defined in [src/core/mst-operations.ts:688](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L688)* +*Defined in [src/core/mst-operations.ts:687](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L687)* Removes a model element from the state tree, and let it live on as a new state tree @@ -2366,7 +2366,7 @@ ___ ▸ **enumeration**<**T**>(`options`: keyof T[]): *[ISimpleType](interfaces/isimpletype.md)‹UnionStringArray‹T[]››* -*Defined in [src/types/utility-types/enumeration.ts:11](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/enumeration.ts#L11)* +*Defined in [src/types/utility-types/enumeration.ts:11](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/enumeration.ts#L11)* `types.enumeration` - Can be used to create an string based enumeration. (note: this methods is just sugar for a union of string literals) @@ -2392,7 +2392,7 @@ Name | Type | Description | ▸ **enumeration**<**T**>(`name`: string, `options`: keyof T[]): *[ISimpleType](interfaces/isimpletype.md)‹UnionStringArray‹T[]››* -*Defined in [src/types/utility-types/enumeration.ts:14](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/enumeration.ts#L14)* +*Defined in [src/types/utility-types/enumeration.ts:14](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/enumeration.ts#L14)* `types.enumeration` - Can be used to create an string based enumeration. (note: this methods is just sugar for a union of string literals) @@ -2423,7 +2423,7 @@ ___ ▸ **escapeJsonPath**(`path`: string): *string* -*Defined in [src/core/json-patch.ts:77](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L77)* +*Defined in [src/core/json-patch.ts:78](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L78)* Escape slashes and backslashes. @@ -2443,7 +2443,7 @@ ___ ▸ **flow**<**R**, **Args**>(`generator`: function): *function* -*Defined in [src/core/flow.ts:21](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/flow.ts#L21)* +*Defined in [src/core/flow.ts:21](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/flow.ts#L21)* See [asynchronous actions](concepts/async-actions.md). @@ -2483,7 +2483,7 @@ ___ ▸ **frozen**<**C**>(`subType`: [IType](interfaces/itype.md)‹C, any, any›): *[IType](interfaces/itype.md)‹C, C, C›* -*Defined in [src/types/utility-types/frozen.ts:54](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/frozen.ts#L54)* +*Defined in [src/types/utility-types/frozen.ts:54](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/frozen.ts#L54)* `types.frozen` - Frozen can be used to store any value that is serializable in itself (that is valid JSON). Frozen values need to be immutable or treated as if immutable. They need be serializable as well. @@ -2535,7 +2535,7 @@ Name | Type | ▸ **frozen**<**T**>(`defaultValue`: T): *[IType](interfaces/itype.md)‹T | undefined | null, T, T›* -*Defined in [src/types/utility-types/frozen.ts:55](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/frozen.ts#L55)* +*Defined in [src/types/utility-types/frozen.ts:55](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/frozen.ts#L55)* `types.frozen` - Frozen can be used to store any value that is serializable in itself (that is valid JSON). Frozen values need to be immutable or treated as if immutable. They need be serializable as well. @@ -2587,7 +2587,7 @@ Name | Type | ▸ **frozen**<**T**>(): *[IType](interfaces/itype.md)‹T, T, T›* -*Defined in [src/types/utility-types/frozen.ts:56](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/frozen.ts#L56)* +*Defined in [src/types/utility-types/frozen.ts:56](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/frozen.ts#L56)* `types.frozen` - Frozen can be used to store any value that is serializable in itself (that is valid JSON). Frozen values need to be immutable or treated as if immutable. They need be serializable as well. @@ -2637,7 +2637,7 @@ ___ ▸ **getChildType**(`object`: IAnyStateTreeNode, `propertyName?`: undefined | string): *[IAnyType](interfaces/ianytype.md)* -*Defined in [src/core/mst-operations.ts:69](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L69)* +*Defined in [src/core/mst-operations.ts:68](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L68)* Returns the _declared_ type of the given sub property of an object, array or map. In the case of arrays and maps the property name is optional and will be ignored. @@ -2665,7 +2665,7 @@ ___ ▸ **getEnv**<**T**>(`target`: IAnyStateTreeNode): *T* -*Defined in [src/core/mst-operations.ts:774](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L774)* +*Defined in [src/core/mst-operations.ts:773](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L773)* Returns the environment of the current state tree, or throws. For more info on environments, see [Dependency injection](https://github.com/mobxjs/mobx-state-tree#dependency-injection) @@ -2693,7 +2693,7 @@ ___ ▸ **getIdentifier**(`target`: IAnyStateTreeNode): *string | null* -*Defined in [src/core/mst-operations.ts:550](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L550)* +*Defined in [src/core/mst-operations.ts:549](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L549)* Returns the identifier of the target node. This is the *string normalized* identifier, which might not match the type of the identifier attribute @@ -2712,7 +2712,7 @@ ___ ▸ **getLivelinessChecking**(): *[LivelinessMode](index.md#livelinessmode)* -*Defined in [src/core/node/livelinessChecking.ts:27](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/node/livelinessChecking.ts#L27)* +*Defined in [src/core/node/livelinessChecking.ts:27](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/node/livelinessChecking.ts#L27)* Returns the current liveliness checking mode. @@ -2726,7 +2726,7 @@ ___ ▸ **getMembers**(`target`: IAnyStateTreeNode): *[IModelReflectionData](interfaces/imodelreflectiondata.md)* -*Defined in [src/core/mst-operations.ts:873](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L873)* +*Defined in [src/core/mst-operations.ts:874](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L874)* Returns a reflection of the model node, including name, properties, views, volatile state, and actions. `flowActions` is also provided as a separate array of names for any action that @@ -2751,7 +2751,7 @@ ___ ▸ **getNodeId**(`target`: IAnyStateTreeNode): *number* -*Defined in [src/core/mst-operations.ts:1019](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L1019)* +*Defined in [src/core/mst-operations.ts:1026](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L1026)* Returns the unique node id (not to be confused with the instance identifier) for a given instance. @@ -2773,7 +2773,7 @@ ___ ▸ **getParent**<**IT**>(`target`: IAnyStateTreeNode, `depth`: number): *TypeOrStateTreeNodeToStateTreeNode‹IT›* -*Defined in [src/core/mst-operations.ts:383](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L383)* +*Defined in [src/core/mst-operations.ts:382](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L382)* Returns the immediate parent of this object, or throws. @@ -2802,7 +2802,7 @@ ___ ▸ **getParentOfType**<**IT**>(`target`: IAnyStateTreeNode, `type`: IT): *IT["Type"]* -*Defined in [src/core/mst-operations.ts:427](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L427)* +*Defined in [src/core/mst-operations.ts:426](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L426)* Returns the target's parent of a given type, or throws. @@ -2825,7 +2825,7 @@ ___ ▸ **getPath**(`target`: IAnyStateTreeNode): *string* -*Defined in [src/core/mst-operations.ts:467](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L467)* +*Defined in [src/core/mst-operations.ts:466](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L466)* Returns the path of the given object in the model tree @@ -2843,7 +2843,7 @@ ___ ▸ **getPathParts**(`target`: IAnyStateTreeNode): *string[]* -*Defined in [src/core/mst-operations.ts:480](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L480)* +*Defined in [src/core/mst-operations.ts:479](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L479)* Returns the path of the given object as unescaped string array. @@ -2861,7 +2861,7 @@ ___ ▸ **getPropertyMembers**(`typeOrNode`: [IAnyModelType](interfaces/ianymodeltype.md) | IAnyStateTreeNode): *[IModelReflectionPropertiesData](interfaces/imodelreflectionpropertiesdata.md)* -*Defined in [src/core/mst-operations.ts:834](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L834)* +*Defined in [src/core/mst-operations.ts:835](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L835)* Returns a reflection of the model type properties and name for either a model type or model node. @@ -2879,7 +2879,7 @@ ___ ▸ **getRelativePath**(`base`: IAnyStateTreeNode, `target`: IAnyStateTreeNode): *string* -*Defined in [src/core/mst-operations.ts:649](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L649)* +*Defined in [src/core/mst-operations.ts:648](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L648)* Given two state tree nodes that are part of the same tree, returns the shortest jsonpath needed to navigate from the one to the other @@ -2899,7 +2899,7 @@ ___ ▸ **getRoot**<**IT**>(`target`: IAnyStateTreeNode): *TypeOrStateTreeNodeToStateTreeNode‹IT›* -*Defined in [src/core/mst-operations.ts:452](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L452)* +*Defined in [src/core/mst-operations.ts:451](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L451)* Given an object in a model tree, returns the root object of that tree. @@ -2924,7 +2924,7 @@ ___ ▸ **getRunningActionContext**(): *[IActionContext](interfaces/iactioncontext.md) | undefined* -*Defined in [src/core/actionContext.ts:26](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L26)* +*Defined in [src/core/actionContext.ts:26](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L26)* Returns the currently executing MST action context, or undefined if none. @@ -2936,7 +2936,7 @@ ___ ▸ **getSnapshot**<**S**>(`target`: IStateTreeNode‹[IType](interfaces/itype.md)‹any, S, any››, `applyPostProcess`: boolean): *S* -*Defined in [src/core/mst-operations.ts:337](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L337)* +*Defined in [src/core/mst-operations.ts:336](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L336)* Calculates a snapshot from the given model instance. The snapshot will always reflect the latest state but use structural sharing where possible. Doesn't require MobX transactions to be completed. @@ -2960,7 +2960,7 @@ ___ ▸ **getType**(`object`: IAnyStateTreeNode): *[IAnyComplexType](interfaces/ianycomplextype.md)* -*Defined in [src/core/mst-operations.ts:47](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L47)* +*Defined in [src/core/mst-operations.ts:46](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L46)* Returns the _actual_ type of the given tree node. (Or throws) @@ -2978,7 +2978,7 @@ ___ ▸ **hasEnv**(`target`: IAnyStateTreeNode): *boolean* -*Defined in [src/core/mst-operations.ts:791](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L791)* +*Defined in [src/core/mst-operations.ts:790](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L790)* Returns whether the current state tree has environment or not. @@ -2998,7 +2998,7 @@ ___ ▸ **hasParent**(`target`: IAnyStateTreeNode, `depth`: number): *boolean* -*Defined in [src/core/mst-operations.ts:357](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L357)* +*Defined in [src/core/mst-operations.ts:356](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L356)* Given a model instance, returns `true` if the object has a parent, that is, is part of another object, map or array. @@ -3017,7 +3017,7 @@ ___ ▸ **hasParentOfType**(`target`: IAnyStateTreeNode, `type`: [IAnyComplexType](interfaces/ianycomplextype.md)): *boolean* -*Defined in [src/core/mst-operations.ts:407](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L407)* +*Defined in [src/core/mst-operations.ts:406](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L406)* Given a model instance, returns `true` if the object has a parent of given type, that is, is part of another object, map or array @@ -3036,7 +3036,7 @@ ___ ▸ **isActionContextChildOf**(`actionContext`: [IActionContext](interfaces/iactioncontext.md), `parent`: number | [IActionContext](interfaces/iactioncontext.md) | [IMiddlewareEvent](interfaces/imiddlewareevent.md)): *boolean* -*Defined in [src/core/actionContext.ts:56](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L56)* +*Defined in [src/core/actionContext.ts:56](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L56)* Returns if the given action context is a parent of this action context. @@ -3055,7 +3055,7 @@ ___ ▸ **isActionContextThisOrChildOf**(`actionContext`: [IActionContext](interfaces/iactioncontext.md), `parentOrThis`: number | [IActionContext](interfaces/iactioncontext.md) | [IMiddlewareEvent](interfaces/imiddlewareevent.md)): *boolean* -*Defined in [src/core/actionContext.ts:66](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L66)* +*Defined in [src/core/actionContext.ts:66](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L66)* Returns if the given action context is this or a parent of this action context. @@ -3074,7 +3074,7 @@ ___ ▸ **isAlive**(`target`: IAnyStateTreeNode): *boolean* -*Defined in [src/core/mst-operations.ts:717](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L717)* +*Defined in [src/core/mst-operations.ts:716](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L716)* Returns true if the given state tree node is not killed yet. This means that the node is still a part of a tree, and that `destroy` @@ -3095,7 +3095,7 @@ ___ ▸ **isArrayType**<**Items**>(`type`: [IAnyType](interfaces/ianytype.md)): *type is IArrayType* -*Defined in [src/types/complex-types/array.ts:508](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/array.ts#L508)* +*Defined in [src/types/complex-types/array.ts:508](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/array.ts#L508)* Returns if a given value represents an array type. @@ -3119,7 +3119,7 @@ ___ ▸ **isFrozenType**<**IT**, **T**>(`type`: IT): *type is IT* -*Defined in [src/types/utility-types/frozen.ts:109](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/frozen.ts#L109)* +*Defined in [src/types/utility-types/frozen.ts:109](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/frozen.ts#L109)* Returns if a given value represents a frozen type. @@ -3143,7 +3143,7 @@ ___ ▸ **isIdentifierType**<**IT**>(`type`: IT): *type is IT* -*Defined in [src/types/utility-types/identifier.ts:133](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/identifier.ts#L133)* +*Defined in [src/types/utility-types/identifier.ts:135](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/identifier.ts#L135)* Returns if a given value represents an identifier type. @@ -3165,7 +3165,7 @@ ___ ▸ **isLateType**<**IT**>(`type`: IT): *type is IT* -*Defined in [src/types/utility-types/late.ts:137](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/late.ts#L137)* +*Defined in [src/types/utility-types/late.ts:141](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/late.ts#L141)* Returns if a given value represents a late type. @@ -3187,7 +3187,7 @@ ___ ▸ **isLiteralType**<**IT**>(`type`: IT): *type is IT* -*Defined in [src/types/utility-types/literal.ts:82](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/literal.ts#L82)* +*Defined in [src/types/utility-types/literal.ts:81](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/literal.ts#L81)* Returns if a given value represents a literal type. @@ -3209,7 +3209,7 @@ ___ ▸ **isMapType**<**Items**>(`type`: [IAnyType](interfaces/ianytype.md)): *type is IMapType* -*Defined in [src/types/complex-types/map.ts:512](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/map.ts#L512)* +*Defined in [src/types/complex-types/map.ts:512](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/map.ts#L512)* Returns if a given value represents a map type. @@ -3233,7 +3233,7 @@ ___ ▸ **isModelType**<**IT**>(`type`: [IAnyType](interfaces/ianytype.md)): *type is IT* -*Defined in [src/types/complex-types/model.ts:853](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L853)* +*Defined in [src/types/complex-types/model.ts:854](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L854)* Returns if a given value represents a model type. @@ -3255,7 +3255,7 @@ ___ ▸ **isOptionalType**<**IT**>(`type`: IT): *type is IT* -*Defined in [src/types/utility-types/optional.ts:229](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/optional.ts#L229)* +*Defined in [src/types/utility-types/optional.ts:229](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/optional.ts#L229)* Returns if a value represents an optional type. @@ -3279,7 +3279,7 @@ ___ ▸ **isPrimitiveType**<**IT**>(`type`: IT): *type is IT* -*Defined in [src/types/primitives.ts:241](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/primitives.ts#L241)* +*Defined in [src/types/primitives.ts:241](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/primitives.ts#L241)* Returns if a given value represents a primitive type. @@ -3301,7 +3301,7 @@ ___ ▸ **isProtected**(`target`: IAnyStateTreeNode): *boolean* -*Defined in [src/core/mst-operations.ts:311](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L311)* +*Defined in [src/core/mst-operations.ts:310](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L310)* Returns true if the object is in protected mode, @see protect @@ -3319,7 +3319,7 @@ ___ ▸ **isReferenceType**<**IT**>(`type`: IT): *type is IT* -*Defined in [src/types/utility-types/reference.ts:509](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/reference.ts#L509)* +*Defined in [src/types/utility-types/reference.ts:511](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/reference.ts#L511)* Returns if a given value represents a reference type. @@ -3341,7 +3341,7 @@ ___ ▸ **isRefinementType**<**IT**>(`type`: IT): *type is IT* -*Defined in [src/types/utility-types/refinement.ts:124](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/refinement.ts#L124)* +*Defined in [src/types/utility-types/refinement.ts:123](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/refinement.ts#L123)* Returns if a given value is a refinement type. @@ -3363,7 +3363,7 @@ ___ ▸ **isRoot**(`target`: IAnyStateTreeNode): *boolean* -*Defined in [src/core/mst-operations.ts:493](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L493)* +*Defined in [src/core/mst-operations.ts:492](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L492)* Returns true if the given object is the root of a model tree. @@ -3381,7 +3381,7 @@ ___ ▸ **isStateTreeNode**<**IT**>(`value`: any): *value is STNValue, IT>* -*Defined in [src/core/node/node-utils.ts:68](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/node/node-utils.ts#L68)* +*Defined in [src/core/node/node-utils.ts:68](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/node/node-utils.ts#L68)* Returns true if the given value is a node in a state tree. More precisely, that is, if the value is an instance of a @@ -3407,7 +3407,7 @@ ___ ▸ **isType**(`value`: any): *value is IAnyType* -*Defined in [src/core/type/type.ts:538](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L538)* +*Defined in [src/core/type/type.ts:538](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L538)* Returns if a given value represents a type. @@ -3427,7 +3427,7 @@ ___ ▸ **isUnionType**<**IT**>(`type`: IT): *type is IT* -*Defined in [src/types/utility-types/union.ts:203](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/union.ts#L203)* +*Defined in [src/types/utility-types/union.ts:203](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/union.ts#L203)* Returns if a given value represents a union type. @@ -3449,7 +3449,7 @@ ___ ▸ **isValidReference**<**N**>(`getter`: function, `checkIfAlive`: boolean): *boolean* -*Defined in [src/core/mst-operations.ts:597](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L597)* +*Defined in [src/core/mst-operations.ts:596](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L596)* Tests if a reference is valid (pointing to an existing node and optionally if alive) and returns if the check passes or not. @@ -3477,7 +3477,7 @@ ___ ▸ **joinJsonPath**(`path`: string[]): *string* -*Defined in [src/core/json-patch.ts:98](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L98)* +*Defined in [src/core/json-patch.ts:99](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L99)* Generates a json-path compliant json path from path parts. @@ -3495,7 +3495,7 @@ ___ ▸ **late**<**T**>(`type`: function): *T* -*Defined in [src/types/utility-types/late.ts:99](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/late.ts#L99)* +*Defined in [src/types/utility-types/late.ts:103](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/late.ts#L103)* `types.late` - Defines a type that gets implemented later. This is useful when you have to deal with circular dependencies. Please notice that when defining circular dependencies TypeScript isn't smart enough to inference them. @@ -3524,7 +3524,7 @@ A function that returns the type that will be defined. ▸ **late**<**T**>(`name`: string, `type`: function): *T* -*Defined in [src/types/utility-types/late.ts:100](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/late.ts#L100)* +*Defined in [src/types/utility-types/late.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/late.ts#L104)* `types.late` - Defines a type that gets implemented later. This is useful when you have to deal with circular dependencies. Please notice that when defining circular dependencies TypeScript isn't smart enough to inference them. @@ -3561,7 +3561,7 @@ ___ ▸ **lazy**<**T**, **U**>(`name`: string, `options`: LazyOptions‹T, U›): *T* -*Defined in [src/types/utility-types/lazy.ts:22](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/lazy.ts#L22)* +*Defined in [src/types/utility-types/lazy.ts:22](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/lazy.ts#L22)* **Type parameters:** @@ -3584,7 +3584,7 @@ ___ ▸ **literal**<**S**>(`value`: S): *[ISimpleType](interfaces/isimpletype.md)‹S›* -*Defined in [src/types/utility-types/literal.ts:69](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/literal.ts#L69)* +*Defined in [src/types/utility-types/literal.ts:68](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/literal.ts#L68)* `types.literal` - The literal type will return a type that will match only the exact given type. The given value must be a primitive, in order to be serialized to a snapshot correctly. @@ -3616,7 +3616,7 @@ ___ ▸ **map**<**IT**>(`subtype`: IT): *IMapType‹IT›* -*Defined in [src/types/complex-types/map.ts:502](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/map.ts#L502)* +*Defined in [src/types/complex-types/map.ts:502](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/map.ts#L502)* `types.map` - Creates a key based collection type who's children are all of a uniform declared type. If the type stored in a map has an identifier, it is mandatory to store the child under that identifier in the map. @@ -3659,7 +3659,7 @@ ___ ▸ **maybe**<**IT**>(`type`: IT): *IMaybe‹IT›* -*Defined in [src/types/utility-types/maybe.ts:31](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/maybe.ts#L31)* +*Defined in [src/types/utility-types/maybe.ts:31](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/maybe.ts#L31)* `types.maybe` - Maybe will make a type nullable, and also optional. The value `undefined` will be used to represent nullability. @@ -3682,7 +3682,7 @@ ___ ▸ **maybeNull**<**IT**>(`type`: IT): *IMaybeNull‹IT›* -*Defined in [src/types/utility-types/maybe.ts:44](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/maybe.ts#L44)* +*Defined in [src/types/utility-types/maybe.ts:44](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/maybe.ts#L44)* `types.maybeNull` - Maybe will make a type nullable, and also optional. The value `null` will be used to represent no value. @@ -3705,7 +3705,7 @@ ___ ▸ **model**<**P**>(`name`: string, `properties?`: [P](undefined)): *[IModelType](interfaces/imodeltype.md)‹ModelPropertiesDeclarationToProperties‹P›, __type›* -*Defined in [src/types/complex-types/model.ts:737](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L737)* +*Defined in [src/types/complex-types/model.ts:738](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L738)* `types.model` - Creates a new model type by providing a name, properties, volatile state and actions. @@ -3726,7 +3726,7 @@ Name | Type | ▸ **model**<**P**>(`properties?`: [P](undefined)): *[IModelType](interfaces/imodeltype.md)‹ModelPropertiesDeclarationToProperties‹P›, __type›* -*Defined in [src/types/complex-types/model.ts:741](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L741)* +*Defined in [src/types/complex-types/model.ts:742](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L742)* `types.model` - Creates a new model type by providing a name, properties, volatile state and actions. @@ -3750,7 +3750,7 @@ ___ ▸ **onAction**(`target`: IAnyStateTreeNode, `listener`: function, `attachAfter`: boolean): *[IDisposer](index.md#idisposer)* -*Defined in [src/middlewares/on-action.ts:225](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L225)* +*Defined in [src/middlewares/on-action.ts:225](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L225)* Registers a function that will be invoked for each action that is called on the provided model instance, or to any of its children. See [actions](https://github.com/mobxjs/mobx-state-tree#actions) for more details. onAction events are emitted only for the outermost called action in the stack. @@ -3810,7 +3810,7 @@ ___ ▸ **onPatch**(`target`: IAnyStateTreeNode, `callback`: function): *[IDisposer](index.md#idisposer)* -*Defined in [src/core/mst-operations.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L84)* +*Defined in [src/core/mst-operations.ts:83](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L83)* Registers a function that will be invoked for each mutation that is applied to the provided model instance, or to any of its children. See [patches](https://github.com/mobxjs/mobx-state-tree#patches) for more details. onPatch events are emitted immediately and will not await the end of a transaction. @@ -3845,7 +3845,7 @@ ___ ▸ **onSnapshot**<**S**>(`target`: IStateTreeNode‹[IType](interfaces/itype.md)‹any, S, any››, `callback`: function): *[IDisposer](index.md#idisposer)* -*Defined in [src/core/mst-operations.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L104)* +*Defined in [src/core/mst-operations.ts:103](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L103)* Registers a function that is invoked whenever a new snapshot for the given model instance is available. The listener will only be fire at the end of the current MobX (trans)action. @@ -3877,7 +3877,7 @@ ___ ▸ **optional**<**IT**>(`type`: IT, `defaultValueOrFunction`: OptionalDefaultValueOrFunction‹IT›): *IOptionalIType‹IT, []›* -*Defined in [src/types/utility-types/optional.ts:155](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/optional.ts#L155)* +*Defined in [src/types/utility-types/optional.ts:155](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/optional.ts#L155)* `types.optional` - Can be used to create a property with a default value. @@ -3929,7 +3929,7 @@ Name | Type | ▸ **optional**<**IT**, **OptionalVals**>(`type`: IT, `defaultValueOrFunction`: OptionalDefaultValueOrFunction‹IT›, `optionalValues`: OptionalVals): *IOptionalIType‹IT, OptionalVals›* -*Defined in [src/types/utility-types/optional.ts:159](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/optional.ts#L159)* +*Defined in [src/types/utility-types/optional.ts:159](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/optional.ts#L159)* `types.optional` - Can be used to create a property with a default value. @@ -3988,7 +3988,7 @@ ___ ▸ **protect**(`target`: IAnyStateTreeNode): *void* -*Defined in [src/core/mst-operations.ts:266](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L266)* +*Defined in [src/core/mst-operations.ts:265](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L265)* The inverse of `unprotect`. @@ -4006,7 +4006,7 @@ ___ ▸ **recordActions**(`subject`: IAnyStateTreeNode, `filter?`: undefined | function): *[IActionRecorder](interfaces/iactionrecorder.md)* -*Defined in [src/middlewares/on-action.ts:147](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L147)* +*Defined in [src/middlewares/on-action.ts:147](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L147)* Small abstraction around `onAction` and `applyAction`, attaches an action listener to a tree and records all the actions emitted. Returns an recorder object with the following signature: @@ -4044,7 +4044,7 @@ ___ ▸ **recordPatches**(`subject`: IAnyStateTreeNode, `filter?`: undefined | function): *[IPatchRecorder](interfaces/ipatchrecorder.md)* -*Defined in [src/core/mst-operations.ts:178](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L178)* +*Defined in [src/core/mst-operations.ts:177](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L177)* Small abstraction around `onPatch` and `applyPatch`, attaches a patch listener to a tree and records all the patches. Returns a recorder object with the following signature: @@ -4087,7 +4087,7 @@ ___ ▸ **reference**<**IT**>(`subType`: IT, `options?`: [ReferenceOptions](index.md#referenceoptions)‹IT›): *IReferenceType‹IT›* -*Defined in [src/types/utility-types/reference.ts:464](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/reference.ts#L464)* +*Defined in [src/types/utility-types/reference.ts:464](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/reference.ts#L464)* `types.reference` - Creates a reference to another type, which should have defined an identifier. See also the [reference and identifiers](https://github.com/mobxjs/mobx-state-tree#references-and-identifiers) section. @@ -4111,7 +4111,7 @@ ___ ▸ **refinement**<**IT**>(`name`: string, `type`: IT, `predicate`: function, `message?`: string | function): *IT* -*Defined in [src/types/utility-types/refinement.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/refinement.ts#L84)* +*Defined in [src/types/utility-types/refinement.ts:83](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/refinement.ts#L83)* `types.refinement` - Creates a type that is more specific than the base type, e.g. `types.refinement(types.string, value => value.length > 5)` to create a type of strings that can only be longer then 5. @@ -4141,7 +4141,7 @@ Name | Type | ▸ **refinement**<**IT**>(`type`: IT, `predicate`: function, `message?`: string | function): *IT* -*Defined in [src/types/utility-types/refinement.ts:90](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/refinement.ts#L90)* +*Defined in [src/types/utility-types/refinement.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/refinement.ts#L89)* `types.refinement` - Creates a type that is more specific than the base type, e.g. `types.refinement(types.string, value => value.length > 5)` to create a type of strings that can only be longer then 5. @@ -4173,7 +4173,7 @@ ___ ▸ **resolveIdentifier**<**IT**>(`type`: IT, `target`: IAnyStateTreeNode, `identifier`: [ReferenceIdentifier](index.md#referenceidentifier)): *IT["Type"] | undefined* -*Defined in [src/core/mst-operations.ts:526](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L526)* +*Defined in [src/core/mst-operations.ts:525](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L525)* Resolves a model instance given a root target, the type and the identifier you are searching for. Returns undefined if no value can be found. @@ -4198,7 +4198,7 @@ ___ ▸ **resolvePath**(`target`: IAnyStateTreeNode, `path`: string): *any* -*Defined in [src/core/mst-operations.ts:508](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L508)* +*Defined in [src/core/mst-operations.ts:507](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L507)* Resolves a path relatively to a given object. Returns undefined if no value can be found. @@ -4218,7 +4218,7 @@ ___ ▸ **safeReference**<**IT**>(`subType`: IT, `options`: __type | [ReferenceOptionsGetSet](interfaces/referenceoptionsgetset.md)‹IT› & object): *IReferenceType‹IT›* -*Defined in [src/types/utility-types/reference.ts:513](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/reference.ts#L513)* +*Defined in [src/types/utility-types/reference.ts:515](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/reference.ts#L515)* `types.safeReference` - A safe reference is like a standard reference, except that it accepts the undefined value by default and automatically sets itself to undefined (when the parent is a model) / removes itself from arrays and maps @@ -4248,7 +4248,7 @@ Name | Type | ▸ **safeReference**<**IT**>(`subType`: IT, `options?`: __type | [ReferenceOptionsGetSet](interfaces/referenceoptionsgetset.md)‹IT› & object): *IMaybe‹IReferenceType‹IT››* -*Defined in [src/types/utility-types/reference.ts:520](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/reference.ts#L520)* +*Defined in [src/types/utility-types/reference.ts:522](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/reference.ts#L522)* `types.safeReference` - A safe reference is like a standard reference, except that it accepts the undefined value by default and automatically sets itself to undefined (when the parent is a model) / removes itself from arrays and maps @@ -4282,7 +4282,7 @@ ___ ▸ **setLivelinessChecking**(`mode`: [LivelinessMode](index.md#livelinessmode)): *void* -*Defined in [src/core/node/livelinessChecking.ts:18](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/node/livelinessChecking.ts#L18)* +*Defined in [src/core/node/livelinessChecking.ts:18](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/node/livelinessChecking.ts#L18)* Defines what MST should do when running into reads / writes to objects that have died. By default it will print a warning. @@ -4302,7 +4302,7 @@ ___ ▸ **snapshotProcessor**<**IT**, **CustomC**, **CustomS**>(`type`: IT, `processors`: [ISnapshotProcessors](interfaces/isnapshotprocessors.md)‹IT, CustomC, CustomS›, `name?`: undefined | string): *[ISnapshotProcessor](interfaces/isnapshotprocessor.md)‹IT, CustomC, CustomS›* -*Defined in [src/types/utility-types/snapshotProcessor.ts:247](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/snapshotProcessor.ts#L247)* +*Defined in [src/types/utility-types/snapshotProcessor.ts:247](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/snapshotProcessor.ts#L247)* `types.snapshotProcessor` - Runs a pre/post snapshot processor before/after serializing a given type. @@ -4355,7 +4355,7 @@ ___ ▸ **splitJsonPath**(`path`: string): *string[]* -*Defined in [src/core/json-patch.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L118)* +*Defined in [src/core/json-patch.ts:119](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L119)* Splits and decodes a json path into several parts. @@ -4373,7 +4373,7 @@ ___ ▸ **toGenerator**<**R**>(`p`: Promise‹R›): *Generator‹Promise‹R›, R, R›* -*Defined in [src/core/flow.ts:87](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/flow.ts#L87)* +*Defined in [src/core/flow.ts:87](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/flow.ts#L87)* **`experimental`** experimental api - might change on minor/patch releases @@ -4413,7 +4413,7 @@ ___ ▸ **toGeneratorFunction**<**R**, **Args**>(`p`: function): *(Anonymous function)* -*Defined in [src/core/flow.ts:60](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/flow.ts#L60)* +*Defined in [src/core/flow.ts:60](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/flow.ts#L60)* **`experimental`** experimental api - might change on minor/patch releases @@ -4462,7 +4462,7 @@ ___ ▸ **tryReference**<**N**>(`getter`: function, `checkIfAlive`: boolean): *N | undefined* -*Defined in [src/core/mst-operations.ts:565](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L565)* +*Defined in [src/core/mst-operations.ts:564](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L564)* Tests if a reference is valid (pointing to an existing node and optionally if alive) and returns such reference if the check passes, else it returns undefined. @@ -4491,7 +4491,7 @@ ___ ▸ **tryResolve**(`target`: IAnyStateTreeNode, `path`: string): *any* -*Defined in [src/core/mst-operations.ts:625](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L625)* +*Defined in [src/core/mst-operations.ts:624](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L624)* Try to resolve a given path relative to a given node. @@ -4510,7 +4510,7 @@ ___ ▸ **typecheck**<**IT**>(`type`: IT, `value`: ExtractCSTWithSTN‹IT›): *void* -*Defined in [src/core/type/type-checker.ts:164](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type-checker.ts#L164)* +*Defined in [src/core/type/type-checker.ts:164](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type-checker.ts#L164)* Run's the typechecker for the given type on the given value, which can be a snapshot or an instance. Throws if the given value is not according the provided type specification. @@ -4535,7 +4535,7 @@ ___ ▸ **unescapeJsonPath**(`path`: string): *string* -*Defined in [src/core/json-patch.ts:88](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L88)* +*Defined in [src/core/json-patch.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L89)* Unescape slashes and backslashes. @@ -4553,7 +4553,7 @@ ___ ▸ **union**<**Types**>(...`types`: Types): *IUnionType‹Types›* -*Defined in [src/types/utility-types/union.ts:160](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/union.ts#L160)* +*Defined in [src/types/utility-types/union.ts:160](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/union.ts#L160)* `types.union` - Create a union of multiple types. If the correct type cannot be inferred unambiguously from a snapshot, provide a dispatcher function of the form `(snapshot) => Type`. @@ -4571,7 +4571,7 @@ Name | Type | ▸ **union**<**Types**>(`options`: [UnionOptions](interfaces/unionoptions.md), ...`types`: Types): *IUnionType‹Types›* -*Defined in [src/types/utility-types/union.ts:161](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/union.ts#L161)* +*Defined in [src/types/utility-types/union.ts:161](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/union.ts#L161)* `types.union` - Create a union of multiple types. If the correct type cannot be inferred unambiguously from a snapshot, provide a dispatcher function of the form `(snapshot) => Type`. @@ -4594,7 +4594,7 @@ ___ ▸ **unprotect**(`target`: IAnyStateTreeNode): *void* -*Defined in [src/core/mst-operations.ts:299](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L299)* +*Defined in [src/core/mst-operations.ts:298](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L298)* By default it is not allowed to directly modify a model. Models can only be modified through actions. However, in some cases you don't care about the advantages (like replayability, traceability, etc) this yields. @@ -4633,7 +4633,7 @@ ___ ▸ **walk**(`target`: IAnyStateTreeNode, `processor`: function): *void* -*Defined in [src/core/mst-operations.ts:807](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L807)* +*Defined in [src/core/mst-operations.ts:808](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L808)* Performs a depth first walk through a tree. @@ -4659,178 +4659,178 @@ Name | Type | ### ▪ **types**: *object* -*Defined in [src/types/index.ts:34](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L34)* +*Defined in [src/types/index.ts:34](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L34)* ### Date • **Date**: *[IType](interfaces/itype.md)‹number | Date, number, Date›* = DatePrimitive -*Defined in [src/types/index.ts:53](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L53)* +*Defined in [src/types/index.ts:53](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L53)* ### array • **array**: *[array](index.md#array)* -*Defined in [src/types/index.ts:55](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L55)* +*Defined in [src/types/index.ts:55](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L55)* ### boolean • **boolean**: *[ISimpleType](interfaces/isimpletype.md)‹boolean›* -*Defined in [src/types/index.ts:48](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L48)* +*Defined in [src/types/index.ts:48](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L48)* ### compose • **compose**: *[compose](index.md#compose)* -*Defined in [src/types/index.ts:37](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L37)* +*Defined in [src/types/index.ts:37](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L37)* ### custom • **custom**: *[custom](index.md#custom)* -*Defined in [src/types/index.ts:38](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L38)* +*Defined in [src/types/index.ts:38](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L38)* ### enumeration • **enumeration**: *[enumeration](index.md#enumeration)* -*Defined in [src/types/index.ts:35](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L35)* +*Defined in [src/types/index.ts:35](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L35)* ### finite • **finite**: *[ISimpleType](interfaces/isimpletype.md)‹number›* -*Defined in [src/types/index.ts:52](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L52)* +*Defined in [src/types/index.ts:52](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L52)* ### float • **float**: *[ISimpleType](interfaces/isimpletype.md)‹number›* -*Defined in [src/types/index.ts:51](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L51)* +*Defined in [src/types/index.ts:51](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L51)* ### frozen • **frozen**: *[frozen](index.md#frozen)* -*Defined in [src/types/index.ts:56](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L56)* +*Defined in [src/types/index.ts:56](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L56)* ### identifier • **identifier**: *[ISimpleType](interfaces/isimpletype.md)‹string›* -*Defined in [src/types/index.ts:57](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L57)* +*Defined in [src/types/index.ts:57](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L57)* ### identifierNumber • **identifierNumber**: *[ISimpleType](interfaces/isimpletype.md)‹number›* -*Defined in [src/types/index.ts:58](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L58)* +*Defined in [src/types/index.ts:58](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L58)* ### integer • **integer**: *[ISimpleType](interfaces/isimpletype.md)‹number›* -*Defined in [src/types/index.ts:50](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L50)* +*Defined in [src/types/index.ts:50](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L50)* ### late • **late**: *[late](index.md#late)* -*Defined in [src/types/index.ts:59](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L59)* +*Defined in [src/types/index.ts:59](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L59)* ### lazy • **lazy**: *[lazy](index.md#lazy)* -*Defined in [src/types/index.ts:60](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L60)* +*Defined in [src/types/index.ts:60](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L60)* ### literal • **literal**: *[literal](index.md#literal)* -*Defined in [src/types/index.ts:43](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L43)* +*Defined in [src/types/index.ts:43](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L43)* ### map • **map**: *[map](index.md#map)* -*Defined in [src/types/index.ts:54](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L54)* +*Defined in [src/types/index.ts:54](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L54)* ### maybe • **maybe**: *[maybe](index.md#maybe)* -*Defined in [src/types/index.ts:44](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L44)* +*Defined in [src/types/index.ts:44](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L44)* ### maybeNull • **maybeNull**: *[maybeNull](index.md#maybenull)* -*Defined in [src/types/index.ts:45](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L45)* +*Defined in [src/types/index.ts:45](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L45)* ### model • **model**: *[model](index.md#model)* -*Defined in [src/types/index.ts:36](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L36)* +*Defined in [src/types/index.ts:36](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L36)* ### null • **null**: *[ISimpleType](interfaces/isimpletype.md)‹null›* = nullType -*Defined in [src/types/index.ts:62](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L62)* +*Defined in [src/types/index.ts:62](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L62)* ### number • **number**: *[ISimpleType](interfaces/isimpletype.md)‹number›* -*Defined in [src/types/index.ts:49](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L49)* +*Defined in [src/types/index.ts:49](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L49)* ### optional • **optional**: *[optional](index.md#optional)* -*Defined in [src/types/index.ts:42](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L42)* +*Defined in [src/types/index.ts:42](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L42)* ### reference • **reference**: *[reference](index.md#reference)* -*Defined in [src/types/index.ts:39](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L39)* +*Defined in [src/types/index.ts:39](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L39)* ### refinement • **refinement**: *[refinement](index.md#refinement)* -*Defined in [src/types/index.ts:46](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L46)* +*Defined in [src/types/index.ts:46](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L46)* ### safeReference • **safeReference**: *[safeReference](index.md#safereference)* -*Defined in [src/types/index.ts:40](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L40)* +*Defined in [src/types/index.ts:40](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L40)* ### snapshotProcessor • **snapshotProcessor**: *[snapshotProcessor](index.md#snapshotprocessor)* -*Defined in [src/types/index.ts:63](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L63)* +*Defined in [src/types/index.ts:63](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L63)* ### string • **string**: *[ISimpleType](interfaces/isimpletype.md)‹string›* -*Defined in [src/types/index.ts:47](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L47)* +*Defined in [src/types/index.ts:47](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L47)* ### undefined • **undefined**: *[ISimpleType](interfaces/isimpletype.md)‹undefined›* = undefinedType -*Defined in [src/types/index.ts:61](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L61)* +*Defined in [src/types/index.ts:61](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L61)* ### union • **union**: *[union](index.md#union)* -*Defined in [src/types/index.ts:41](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/index.ts#L41)* +*Defined in [src/types/index.ts:41](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/index.ts#L41)* diff --git a/docs/API/interfaces/customtypeoptions.md b/docs/API/interfaces/customtypeoptions.md index d429aebf7..4774fc244 100644 --- a/docs/API/interfaces/customtypeoptions.md +++ b/docs/API/interfaces/customtypeoptions.md @@ -4,7 +4,7 @@ title: "CustomTypeOptions" sidebar_label: "CustomTypeOptions" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [CustomTypeOptions](customtypeoptions.md) +[mobx-state-tree - v6.0.0](../index.md) › [CustomTypeOptions](customtypeoptions.md) ## Type parameters @@ -35,7 +35,7 @@ sidebar_label: "CustomTypeOptions" • **name**: *string* -*Defined in [src/types/utility-types/custom.ts:15](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/custom.ts#L15)* +*Defined in [src/types/utility-types/custom.ts:15](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/custom.ts#L15)* Friendly name @@ -45,7 +45,7 @@ Friendly name ▸ **fromSnapshot**(`snapshot`: S, `env?`: any): *T* -*Defined in [src/types/utility-types/custom.ts:17](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/custom.ts#L17)* +*Defined in [src/types/utility-types/custom.ts:17](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/custom.ts#L17)* given a serialized value and environment, how to turn it into the target type @@ -64,7 +64,7 @@ ___ ▸ **getValidationMessage**(`snapshot`: S): *string* -*Defined in [src/types/utility-types/custom.ts:23](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/custom.ts#L23)* +*Defined in [src/types/utility-types/custom.ts:23](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/custom.ts#L23)* a non empty string is assumed to be a validation error @@ -82,7 +82,7 @@ ___ ▸ **isTargetType**(`value`: T | S): *boolean* -*Defined in [src/types/utility-types/custom.ts:21](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/custom.ts#L21)* +*Defined in [src/types/utility-types/custom.ts:21](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/custom.ts#L21)* if true, this is a converted value, if false, it's a snapshot @@ -100,7 +100,7 @@ ___ ▸ **toSnapshot**(`value`: T): *S* -*Defined in [src/types/utility-types/custom.ts:19](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/custom.ts#L19)* +*Defined in [src/types/utility-types/custom.ts:19](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/custom.ts#L19)* return the serialization of the current value diff --git a/docs/API/interfaces/functionwithflag.md b/docs/API/interfaces/functionwithflag.md index 823501434..25546d9ef 100644 --- a/docs/API/interfaces/functionwithflag.md +++ b/docs/API/interfaces/functionwithflag.md @@ -4,7 +4,7 @@ title: "FunctionWithFlag" sidebar_label: "FunctionWithFlag" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [FunctionWithFlag](functionwithflag.md) +[mobx-state-tree - v6.0.0](../index.md) › [FunctionWithFlag](functionwithflag.md) ## Hierarchy @@ -17,6 +17,7 @@ sidebar_label: "FunctionWithFlag" ### Properties * [Function](functionwithflag.md#function) +* [[Symbol.metadata]](functionwithflag.md#[symbol.metadata]) * [_isFlowAction](functionwithflag.md#optional-_isflowaction) * [_isMSTAction](functionwithflag.md#optional-_ismstaction) * [arguments](functionwithflag.md#arguments) @@ -43,11 +44,21 @@ Defined in node_modules/typescript/lib/lib.es5.d.ts:319 ___ +### [Symbol.metadata] + +• **[Symbol.metadata]**: *DecoratorMetadata | null* + +*Inherited from void* + +Defined in node_modules/typescript/lib/lib.esnext.decorators.d.ts:27 + +___ + ### `Optional` _isFlowAction • **_isFlowAction**? : *undefined | false | true* -*Defined in [src/core/action.ts:42](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L42)* +*Defined in [src/core/action.ts:42](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L42)* ___ @@ -55,7 +66,7 @@ ___ • **_isMSTAction**? : *undefined | false | true* -*Defined in [src/core/action.ts:41](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L41)* +*Defined in [src/core/action.ts:41](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L41)* ___ diff --git a/docs/API/interfaces/iactioncontext.md b/docs/API/interfaces/iactioncontext.md index 0b79c8d90..a9b424faf 100644 --- a/docs/API/interfaces/iactioncontext.md +++ b/docs/API/interfaces/iactioncontext.md @@ -4,7 +4,7 @@ title: "IActionContext" sidebar_label: "IActionContext" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IActionContext](iactioncontext.md) +[mobx-state-tree - v6.0.0](../index.md) › [IActionContext](iactioncontext.md) ## Hierarchy @@ -29,7 +29,7 @@ sidebar_label: "IActionContext" • **args**: *any[]* -*Defined in [src/core/actionContext.ts:20](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L20)* +*Defined in [src/core/actionContext.ts:20](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L20)* Event arguments in an array (action arguments for actions) @@ -39,7 +39,7 @@ ___ • **context**: *IAnyStateTreeNode* -*Defined in [src/core/actionContext.ts:15](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L15)* +*Defined in [src/core/actionContext.ts:15](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L15)* Event context (node where the action was invoked) @@ -49,7 +49,7 @@ ___ • **id**: *number* -*Defined in [src/core/actionContext.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L9)* +*Defined in [src/core/actionContext.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L9)* Event unique id @@ -59,7 +59,7 @@ ___ • **name**: *string* -*Defined in [src/core/actionContext.ts:6](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L6)* +*Defined in [src/core/actionContext.ts:6](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L6)* Event name (action name for actions) @@ -69,7 +69,7 @@ ___ • **parentActionEvent**: *[IMiddlewareEvent](imiddlewareevent.md) | undefined* -*Defined in [src/core/actionContext.ts:12](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L12)* +*Defined in [src/core/actionContext.ts:12](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L12)* Parent action event object @@ -79,6 +79,6 @@ ___ • **tree**: *IAnyStateTreeNode* -*Defined in [src/core/actionContext.ts:17](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L17)* +*Defined in [src/core/actionContext.ts:17](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L17)* Event tree (root node of the node where the action was invoked) diff --git a/docs/API/interfaces/iactionrecorder.md b/docs/API/interfaces/iactionrecorder.md index d19afece5..a24c5dc71 100644 --- a/docs/API/interfaces/iactionrecorder.md +++ b/docs/API/interfaces/iactionrecorder.md @@ -4,7 +4,7 @@ title: "IActionRecorder" sidebar_label: "IActionRecorder" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IActionRecorder](iactionrecorder.md) +[mobx-state-tree - v6.0.0](../index.md) › [IActionRecorder](iactionrecorder.md) ## Hierarchy @@ -29,7 +29,7 @@ sidebar_label: "IActionRecorder" • **actions**: *ReadonlyArray‹[ISerializedActionCall](iserializedactioncall.md)›* -*Defined in [src/middlewares/on-action.ts:37](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L37)* +*Defined in [src/middlewares/on-action.ts:37](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L37)* ___ @@ -37,7 +37,7 @@ ___ • **recording**: *boolean* -*Defined in [src/middlewares/on-action.ts:38](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L38)* +*Defined in [src/middlewares/on-action.ts:38](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L38)* ## Methods @@ -45,7 +45,7 @@ ___ ▸ **replay**(`target`: IAnyStateTreeNode): *void* -*Defined in [src/middlewares/on-action.ts:41](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L41)* +*Defined in [src/middlewares/on-action.ts:41](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L41)* **Parameters:** @@ -61,7 +61,7 @@ ___ ▸ **resume**(): *void* -*Defined in [src/middlewares/on-action.ts:40](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L40)* +*Defined in [src/middlewares/on-action.ts:40](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L40)* **Returns:** *void* @@ -71,6 +71,6 @@ ___ ▸ **stop**(): *void* -*Defined in [src/middlewares/on-action.ts:39](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L39)* +*Defined in [src/middlewares/on-action.ts:39](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L39)* **Returns:** *void* diff --git a/docs/API/interfaces/iactiontrackingmiddleware2call.md b/docs/API/interfaces/iactiontrackingmiddleware2call.md index 86a8acc3d..110c313c8 100644 --- a/docs/API/interfaces/iactiontrackingmiddleware2call.md +++ b/docs/API/interfaces/iactiontrackingmiddleware2call.md @@ -4,7 +4,7 @@ title: "IActionTrackingMiddleware2Call" sidebar_label: "IActionTrackingMiddleware2Call" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IActionTrackingMiddleware2Call](iactiontrackingmiddleware2call.md) +[mobx-state-tree - v6.0.0](../index.md) › [IActionTrackingMiddleware2Call](iactiontrackingmiddleware2call.md) ## Type parameters @@ -29,7 +29,7 @@ sidebar_label: "IActionTrackingMiddleware2Call" • **env**: *TEnv | undefined* -*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:6](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/createActionTrackingMiddleware2.ts#L6)* +*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:4](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/createActionTrackingMiddleware2.ts#L4)* ___ @@ -37,4 +37,4 @@ ___ • **parentCall**? : *[IActionTrackingMiddleware2Call](iactiontrackingmiddleware2call.md)‹TEnv›* -*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:7](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/createActionTrackingMiddleware2.ts#L7)* +*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:5](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/createActionTrackingMiddleware2.ts#L5)* diff --git a/docs/API/interfaces/iactiontrackingmiddleware2hooks.md b/docs/API/interfaces/iactiontrackingmiddleware2hooks.md index c8124daba..92f271990 100644 --- a/docs/API/interfaces/iactiontrackingmiddleware2hooks.md +++ b/docs/API/interfaces/iactiontrackingmiddleware2hooks.md @@ -4,7 +4,7 @@ title: "IActionTrackingMiddleware2Hooks" sidebar_label: "IActionTrackingMiddleware2Hooks" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IActionTrackingMiddleware2Hooks](iactiontrackingmiddleware2hooks.md) +[mobx-state-tree - v6.0.0](../index.md) › [IActionTrackingMiddleware2Hooks](iactiontrackingmiddleware2hooks.md) ## Type parameters @@ -28,7 +28,7 @@ sidebar_label: "IActionTrackingMiddleware2Hooks" • **filter**? : *undefined | function* -*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:11](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/createActionTrackingMiddleware2.ts#L11)* +*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/createActionTrackingMiddleware2.ts#L9)* ___ @@ -36,7 +36,7 @@ ___ • **onFinish**: *function* -*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:13](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/createActionTrackingMiddleware2.ts#L13)* +*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:11](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/createActionTrackingMiddleware2.ts#L11)* #### Type declaration: @@ -55,7 +55,7 @@ ___ • **onStart**: *function* -*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:12](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/createActionTrackingMiddleware2.ts#L12)* +*Defined in [src/middlewares/createActionTrackingMiddleware2.ts:10](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/createActionTrackingMiddleware2.ts#L10)* #### Type declaration: diff --git a/docs/API/interfaces/iactiontrackingmiddlewarehooks.md b/docs/API/interfaces/iactiontrackingmiddlewarehooks.md index 27abd1990..3cd365606 100644 --- a/docs/API/interfaces/iactiontrackingmiddlewarehooks.md +++ b/docs/API/interfaces/iactiontrackingmiddlewarehooks.md @@ -4,7 +4,7 @@ title: "IActionTrackingMiddlewareHooks" sidebar_label: "IActionTrackingMiddlewareHooks" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IActionTrackingMiddlewareHooks](iactiontrackingmiddlewarehooks.md) +[mobx-state-tree - v6.0.0](../index.md) › [IActionTrackingMiddlewareHooks](iactiontrackingmiddlewarehooks.md) ## Type parameters @@ -31,7 +31,7 @@ sidebar_label: "IActionTrackingMiddlewareHooks" • **filter**? : *undefined | function* -*Defined in [src/middlewares/create-action-tracking-middleware.ts:6](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/create-action-tracking-middleware.ts#L6)* +*Defined in [src/middlewares/create-action-tracking-middleware.ts:6](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/create-action-tracking-middleware.ts#L6)* ___ @@ -39,7 +39,7 @@ ___ • **onFail**: *function* -*Defined in [src/middlewares/create-action-tracking-middleware.ts:11](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/create-action-tracking-middleware.ts#L11)* +*Defined in [src/middlewares/create-action-tracking-middleware.ts:11](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/create-action-tracking-middleware.ts#L11)* #### Type declaration: @@ -59,7 +59,7 @@ ___ • **onResume**: *function* -*Defined in [src/middlewares/create-action-tracking-middleware.ts:8](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/create-action-tracking-middleware.ts#L8)* +*Defined in [src/middlewares/create-action-tracking-middleware.ts:8](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/create-action-tracking-middleware.ts#L8)* #### Type declaration: @@ -78,7 +78,7 @@ ___ • **onStart**: *function* -*Defined in [src/middlewares/create-action-tracking-middleware.ts:7](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/create-action-tracking-middleware.ts#L7)* +*Defined in [src/middlewares/create-action-tracking-middleware.ts:7](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/create-action-tracking-middleware.ts#L7)* #### Type declaration: @@ -96,7 +96,7 @@ ___ • **onSuccess**: *function* -*Defined in [src/middlewares/create-action-tracking-middleware.ts:10](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/create-action-tracking-middleware.ts#L10)* +*Defined in [src/middlewares/create-action-tracking-middleware.ts:10](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/create-action-tracking-middleware.ts#L10)* #### Type declaration: @@ -116,7 +116,7 @@ ___ • **onSuspend**: *function* -*Defined in [src/middlewares/create-action-tracking-middleware.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/create-action-tracking-middleware.ts#L9)* +*Defined in [src/middlewares/create-action-tracking-middleware.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/create-action-tracking-middleware.ts#L9)* #### Type declaration: diff --git a/docs/API/interfaces/ianycomplextype.md b/docs/API/interfaces/ianycomplextype.md index e92629417..2559074fc 100644 --- a/docs/API/interfaces/ianycomplextype.md +++ b/docs/API/interfaces/ianycomplextype.md @@ -4,7 +4,7 @@ title: "IAnyComplexType" sidebar_label: "IAnyComplexType" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IAnyComplexType](ianycomplextype.md) +[mobx-state-tree - v6.0.0](../index.md) › [IAnyComplexType](ianycomplextype.md) Any kind of complex type. @@ -36,7 +36,7 @@ Any kind of complex type. *Inherited from [IType](itype.md).[identifierAttribute](itype.md#optional-identifierattribute)* -*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L89)* +*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L89)* Name of the identifier attribute or null if none. @@ -48,7 +48,7 @@ ___ *Inherited from [IType](itype.md).[name](itype.md#name)* -*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L84)* +*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L84)* Friendly type name. @@ -60,7 +60,7 @@ Friendly type name. *Inherited from [IType](itype.md).[create](itype.md#create)* -*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L96)* +*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L96)* Creates an instance for the type given an snapshot input. @@ -83,7 +83,7 @@ ___ *Inherited from [IType](itype.md).[describe](itype.md#describe)* -*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L118)* +*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L118)* Gets the textual representation of the type as a string. @@ -97,7 +97,7 @@ ___ *Inherited from [IType](itype.md).[is](itype.md#is)* -*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L104)* +*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L104)* Checks if a given snapshot / instance is of the given type. @@ -119,7 +119,7 @@ ___ *Inherited from [IType](itype.md).[validate](itype.md#validate)* -*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L113)* +*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L113)* Run's the type's typechecker on the given value with the given validation context. diff --git a/docs/API/interfaces/ianymodeltype.md b/docs/API/interfaces/ianymodeltype.md index 4398283db..d4ba799f8 100644 --- a/docs/API/interfaces/ianymodeltype.md +++ b/docs/API/interfaces/ianymodeltype.md @@ -4,7 +4,7 @@ title: "IAnyModelType" sidebar_label: "IAnyModelType" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IAnyModelType](ianymodeltype.md) +[mobx-state-tree - v6.0.0](../index.md) › [IAnyModelType](ianymodeltype.md) Any model type. @@ -45,7 +45,7 @@ Any model type. *Inherited from [IType](itype.md).[identifierAttribute](itype.md#optional-identifierattribute)* -*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L89)* +*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L89)* Name of the identifier attribute or null if none. @@ -57,7 +57,7 @@ ___ *Inherited from [IType](itype.md).[name](itype.md#name)* -*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L84)* +*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L84)* Friendly type name. @@ -69,7 +69,7 @@ ___ *Inherited from [IModelType](imodeltype.md).[properties](imodeltype.md#properties)* -*Defined in [src/types/complex-types/model.ts:190](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L190)* +*Defined in [src/types/complex-types/model.ts:190](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L190)* ## Methods @@ -79,7 +79,7 @@ ___ *Inherited from [IModelType](imodeltype.md).[actions](imodeltype.md#actions)* -*Defined in [src/types/complex-types/model.ts:204](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L204)* +*Defined in [src/types/complex-types/model.ts:204](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L204)* **Type parameters:** @@ -107,7 +107,7 @@ ___ *Inherited from [IType](itype.md).[create](itype.md#create)* -*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L96)* +*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L96)* Creates an instance for the type given an snapshot input. @@ -130,7 +130,7 @@ ___ *Inherited from [IType](itype.md).[describe](itype.md#describe)* -*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L118)* +*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L118)* Gets the textual representation of the type as a string. @@ -144,7 +144,7 @@ ___ *Inherited from [IModelType](imodeltype.md).[extend](imodeltype.md#extend)* -*Defined in [src/types/complex-types/model.ts:212](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L212)* +*Defined in [src/types/complex-types/model.ts:212](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L212)* **Type parameters:** @@ -176,7 +176,7 @@ ___ *Inherited from [IType](itype.md).[is](itype.md#is)* -*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L104)* +*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L104)* Checks if a given snapshot / instance is of the given type. @@ -198,7 +198,7 @@ ___ *Inherited from [IModelType](imodeltype.md).[named](imodeltype.md#named)* -*Defined in [src/types/complex-types/model.ts:192](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L192)* +*Defined in [src/types/complex-types/model.ts:192](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L192)* **Parameters:** @@ -216,7 +216,7 @@ ___ *Inherited from [IModelType](imodeltype.md).[postProcessSnapshot](imodeltype.md#postprocesssnapshot)* -*Defined in [src/types/complex-types/model.ts:220](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L220)* +*Defined in [src/types/complex-types/model.ts:220](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L220)* **Type parameters:** @@ -244,7 +244,7 @@ ___ *Inherited from [IModelType](imodeltype.md).[preProcessSnapshot](imodeltype.md#preprocesssnapshot)* -*Defined in [src/types/complex-types/model.ts:216](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L216)* +*Defined in [src/types/complex-types/model.ts:216](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L216)* **Type parameters:** @@ -272,7 +272,7 @@ ___ *Inherited from [IModelType](imodeltype.md).[props](imodeltype.md#props)* -*Defined in [src/types/complex-types/model.ts:196](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L196)* +*Defined in [src/types/complex-types/model.ts:196](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L196)* **Type parameters:** @@ -294,7 +294,7 @@ ___ *Inherited from [IType](itype.md).[validate](itype.md#validate)* -*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L113)* +*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L113)* Run's the type's typechecker on the given value with the given validation context. @@ -317,7 +317,7 @@ ___ *Inherited from [IModelType](imodeltype.md).[views](imodeltype.md#views)* -*Defined in [src/types/complex-types/model.ts:200](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L200)* +*Defined in [src/types/complex-types/model.ts:200](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L200)* **Type parameters:** @@ -345,7 +345,7 @@ ___ *Inherited from [IModelType](imodeltype.md).[volatile](imodeltype.md#volatile)* -*Defined in [src/types/complex-types/model.ts:208](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L208)* +*Defined in [src/types/complex-types/model.ts:208](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L208)* **Type parameters:** diff --git a/docs/API/interfaces/ianytype.md b/docs/API/interfaces/ianytype.md index 73eca6a35..d8854cc09 100644 --- a/docs/API/interfaces/ianytype.md +++ b/docs/API/interfaces/ianytype.md @@ -4,7 +4,7 @@ title: "IAnyType" sidebar_label: "IAnyType" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IAnyType](ianytype.md) +[mobx-state-tree - v6.0.0](../index.md) › [IAnyType](ianytype.md) Any kind of type. @@ -36,7 +36,7 @@ Any kind of type. *Inherited from [IType](itype.md).[identifierAttribute](itype.md#optional-identifierattribute)* -*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L89)* +*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L89)* Name of the identifier attribute or null if none. @@ -48,7 +48,7 @@ ___ *Inherited from [IType](itype.md).[name](itype.md#name)* -*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L84)* +*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L84)* Friendly type name. @@ -60,7 +60,7 @@ Friendly type name. *Inherited from [IType](itype.md).[create](itype.md#create)* -*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L96)* +*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L96)* Creates an instance for the type given an snapshot input. @@ -83,7 +83,7 @@ ___ *Inherited from [IType](itype.md).[describe](itype.md#describe)* -*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L118)* +*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L118)* Gets the textual representation of the type as a string. @@ -97,7 +97,7 @@ ___ *Inherited from [IType](itype.md).[is](itype.md#is)* -*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L104)* +*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L104)* Checks if a given snapshot / instance is of the given type. @@ -119,7 +119,7 @@ ___ *Inherited from [IType](itype.md).[validate](itype.md#validate)* -*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L113)* +*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L113)* Run's the type's typechecker on the given value with the given validation context. diff --git a/docs/API/interfaces/ihooks.md b/docs/API/interfaces/ihooks.md index 1f1e326dd..3b72fe00b 100644 --- a/docs/API/interfaces/ihooks.md +++ b/docs/API/interfaces/ihooks.md @@ -4,7 +4,7 @@ title: "IHooks" sidebar_label: "IHooks" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IHooks](ihooks.md) +[mobx-state-tree - v6.0.0](../index.md) › [IHooks](ihooks.md) ## Hierarchy @@ -25,7 +25,7 @@ sidebar_label: "IHooks" • **[Hook.afterAttach]**? : *undefined | function* -*Defined in [src/core/node/Hook.ts:14](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/node/Hook.ts#L14)* +*Defined in [src/core/node/Hook.ts:14](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/node/Hook.ts#L14)* ___ @@ -33,7 +33,7 @@ ___ • **[Hook.afterCreate]**? : *undefined | function* -*Defined in [src/core/node/Hook.ts:13](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/node/Hook.ts#L13)* +*Defined in [src/core/node/Hook.ts:13](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/node/Hook.ts#L13)* ___ @@ -41,7 +41,7 @@ ___ • **[Hook.beforeDestroy]**? : *undefined | function* -*Defined in [src/core/node/Hook.ts:16](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/node/Hook.ts#L16)* +*Defined in [src/core/node/Hook.ts:16](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/node/Hook.ts#L16)* ___ @@ -49,4 +49,4 @@ ___ • **[Hook.beforeDetach]**? : *undefined | function* -*Defined in [src/core/node/Hook.ts:15](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/node/Hook.ts#L15)* +*Defined in [src/core/node/Hook.ts:15](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/node/Hook.ts#L15)* diff --git a/docs/API/interfaces/ijsonpatch.md b/docs/API/interfaces/ijsonpatch.md index 1d4800964..e05358b7f 100644 --- a/docs/API/interfaces/ijsonpatch.md +++ b/docs/API/interfaces/ijsonpatch.md @@ -4,7 +4,7 @@ title: "IJsonPatch" sidebar_label: "IJsonPatch" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IJsonPatch](ijsonpatch.md) +[mobx-state-tree - v6.0.0](../index.md) › [IJsonPatch](ijsonpatch.md) https://tools.ietf.org/html/rfc6902 http://jsonpatch.com/ @@ -29,7 +29,7 @@ http://jsonpatch.com/ • **op**: *"replace" | "add" | "remove"* -*Defined in [src/core/json-patch.ts:8](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L8)* +*Defined in [src/core/json-patch.ts:8](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L8)* ___ @@ -37,7 +37,7 @@ ___ • **path**: *string* -*Defined in [src/core/json-patch.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L9)* +*Defined in [src/core/json-patch.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L9)* ___ @@ -45,4 +45,4 @@ ___ • **value**? : *any* -*Defined in [src/core/json-patch.ts:10](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L10)* +*Defined in [src/core/json-patch.ts:10](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L10)* diff --git a/docs/API/interfaces/imiddlewareevent.md b/docs/API/interfaces/imiddlewareevent.md index c2a21041e..9ed8aab90 100644 --- a/docs/API/interfaces/imiddlewareevent.md +++ b/docs/API/interfaces/imiddlewareevent.md @@ -4,7 +4,7 @@ title: "IMiddlewareEvent" sidebar_label: "IMiddlewareEvent" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IMiddlewareEvent](imiddlewareevent.md) +[mobx-state-tree - v6.0.0](../index.md) › [IMiddlewareEvent](imiddlewareevent.md) ## Hierarchy @@ -34,7 +34,7 @@ sidebar_label: "IMiddlewareEvent" • **allParentIds**: *number[]* -*Defined in [src/core/action.ts:37](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L37)* +*Defined in [src/core/action.ts:37](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L37)* Id of all events, from root until current (excluding current) @@ -46,7 +46,7 @@ ___ *Inherited from [IActionContext](iactioncontext.md).[args](iactioncontext.md#args)* -*Defined in [src/core/actionContext.ts:20](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L20)* +*Defined in [src/core/actionContext.ts:20](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L20)* Event arguments in an array (action arguments for actions) @@ -58,7 +58,7 @@ ___ *Inherited from [IActionContext](iactioncontext.md).[context](iactioncontext.md#context)* -*Defined in [src/core/actionContext.ts:15](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L15)* +*Defined in [src/core/actionContext.ts:15](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L15)* Event context (node where the action was invoked) @@ -70,7 +70,7 @@ ___ *Inherited from [IActionContext](iactioncontext.md).[id](iactioncontext.md#id)* -*Defined in [src/core/actionContext.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L9)* +*Defined in [src/core/actionContext.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L9)* Event unique id @@ -82,7 +82,7 @@ ___ *Inherited from [IActionContext](iactioncontext.md).[name](iactioncontext.md#name)* -*Defined in [src/core/actionContext.ts:6](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L6)* +*Defined in [src/core/actionContext.ts:6](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L6)* Event name (action name for actions) @@ -94,7 +94,7 @@ ___ *Inherited from [IActionContext](iactioncontext.md).[parentActionEvent](iactioncontext.md#parentactionevent)* -*Defined in [src/core/actionContext.ts:12](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L12)* +*Defined in [src/core/actionContext.ts:12](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L12)* Parent action event object @@ -104,7 +104,7 @@ ___ • **parentEvent**: *[IMiddlewareEvent](imiddlewareevent.md) | undefined* -*Defined in [src/core/action.ts:32](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L32)* +*Defined in [src/core/action.ts:32](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L32)* Parent event object @@ -114,7 +114,7 @@ ___ • **parentId**: *number* -*Defined in [src/core/action.ts:30](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L30)* +*Defined in [src/core/action.ts:30](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L30)* Parent event unique id @@ -124,7 +124,7 @@ ___ • **rootId**: *number* -*Defined in [src/core/action.ts:35](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L35)* +*Defined in [src/core/action.ts:35](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L35)* Root event unique id @@ -136,7 +136,7 @@ ___ *Inherited from [IActionContext](iactioncontext.md).[tree](iactioncontext.md#tree)* -*Defined in [src/core/actionContext.ts:17](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/actionContext.ts#L17)* +*Defined in [src/core/actionContext.ts:17](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/actionContext.ts#L17)* Event tree (root node of the node where the action was invoked) @@ -146,6 +146,6 @@ ___ • **type**: *[IMiddlewareEventType](../index.md#imiddlewareeventtype)* -*Defined in [src/core/action.ts:27](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/action.ts#L27)* +*Defined in [src/core/action.ts:27](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/action.ts#L27)* Event type diff --git a/docs/API/interfaces/imodelreflectiondata.md b/docs/API/interfaces/imodelreflectiondata.md index 4e1060042..31b9be806 100644 --- a/docs/API/interfaces/imodelreflectiondata.md +++ b/docs/API/interfaces/imodelreflectiondata.md @@ -4,7 +4,7 @@ title: "IModelReflectionData" sidebar_label: "IModelReflectionData" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IModelReflectionData](imodelreflectiondata.md) +[mobx-state-tree - v6.0.0](../index.md) › [IModelReflectionData](imodelreflectiondata.md) ## Hierarchy @@ -29,7 +29,7 @@ sidebar_label: "IModelReflectionData" • **actions**: *string[]* -*Defined in [src/core/mst-operations.ts:854](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L854)* +*Defined in [src/core/mst-operations.ts:855](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L855)* ___ @@ -37,7 +37,7 @@ ___ • **flowActions**: *string[]* -*Defined in [src/core/mst-operations.ts:857](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L857)* +*Defined in [src/core/mst-operations.ts:858](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L858)* ___ @@ -47,7 +47,7 @@ ___ *Inherited from [IModelReflectionPropertiesData](imodelreflectionpropertiesdata.md).[name](imodelreflectionpropertiesdata.md#name)* -*Defined in [src/core/mst-operations.ts:824](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L824)* +*Defined in [src/core/mst-operations.ts:825](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L825)* ___ @@ -57,7 +57,7 @@ ___ *Inherited from [IModelReflectionPropertiesData](imodelreflectionpropertiesdata.md).[properties](imodelreflectionpropertiesdata.md#properties)* -*Defined in [src/core/mst-operations.ts:825](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L825)* +*Defined in [src/core/mst-operations.ts:826](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L826)* #### Type declaration: @@ -69,7 +69,7 @@ ___ • **views**: *string[]* -*Defined in [src/core/mst-operations.ts:855](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L855)* +*Defined in [src/core/mst-operations.ts:856](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L856)* ___ @@ -77,4 +77,4 @@ ___ • **volatile**: *string[]* -*Defined in [src/core/mst-operations.ts:856](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L856)* +*Defined in [src/core/mst-operations.ts:857](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L857)* diff --git a/docs/API/interfaces/imodelreflectionpropertiesdata.md b/docs/API/interfaces/imodelreflectionpropertiesdata.md index c5ad572cd..081494f26 100644 --- a/docs/API/interfaces/imodelreflectionpropertiesdata.md +++ b/docs/API/interfaces/imodelreflectionpropertiesdata.md @@ -4,7 +4,7 @@ title: "IModelReflectionPropertiesData" sidebar_label: "IModelReflectionPropertiesData" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IModelReflectionPropertiesData](imodelreflectionpropertiesdata.md) +[mobx-state-tree - v6.0.0](../index.md) › [IModelReflectionPropertiesData](imodelreflectionpropertiesdata.md) ## Hierarchy @@ -25,7 +25,7 @@ sidebar_label: "IModelReflectionPropertiesData" • **name**: *string* -*Defined in [src/core/mst-operations.ts:824](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L824)* +*Defined in [src/core/mst-operations.ts:825](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L825)* ___ @@ -33,7 +33,7 @@ ___ • **properties**: *object* -*Defined in [src/core/mst-operations.ts:825](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L825)* +*Defined in [src/core/mst-operations.ts:826](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L826)* #### Type declaration: diff --git a/docs/API/interfaces/imodeltype.md b/docs/API/interfaces/imodeltype.md index 40a58da24..6bd43678a 100644 --- a/docs/API/interfaces/imodeltype.md +++ b/docs/API/interfaces/imodeltype.md @@ -4,7 +4,7 @@ title: "IModelType" sidebar_label: "IModelType" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IModelType](imodeltype.md) +[mobx-state-tree - v6.0.0](../index.md) › [IModelType](imodeltype.md) ## Type parameters @@ -55,7 +55,7 @@ sidebar_label: "IModelType" *Inherited from [IType](itype.md).[identifierAttribute](itype.md#optional-identifierattribute)* -*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L89)* +*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L89)* Name of the identifier attribute or null if none. @@ -67,7 +67,7 @@ ___ *Inherited from [IType](itype.md).[name](itype.md#name)* -*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L84)* +*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L84)* Friendly type name. @@ -77,7 +77,7 @@ ___ • **properties**: *PROPS* -*Defined in [src/types/complex-types/model.ts:190](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L190)* +*Defined in [src/types/complex-types/model.ts:190](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L190)* ## Methods @@ -85,7 +85,7 @@ ___ ▸ **actions**<**A**>(`fn`: function): *[IModelType](imodeltype.md)‹PROPS, OTHERS & A, CustomC, CustomS›* -*Defined in [src/types/complex-types/model.ts:204](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L204)* +*Defined in [src/types/complex-types/model.ts:204](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L204)* **Type parameters:** @@ -113,7 +113,7 @@ ___ *Inherited from [IType](itype.md).[create](itype.md#create)* -*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L96)* +*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L96)* Creates an instance for the type given an snapshot input. @@ -136,7 +136,7 @@ ___ *Inherited from [IType](itype.md).[describe](itype.md#describe)* -*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L118)* +*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L118)* Gets the textual representation of the type as a string. @@ -148,7 +148,7 @@ ___ ▸ **extend**<**A**, **V**, **VS**>(`fn`: function): *[IModelType](imodeltype.md)‹PROPS, OTHERS & A & V & VS, CustomC, CustomS›* -*Defined in [src/types/complex-types/model.ts:212](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L212)* +*Defined in [src/types/complex-types/model.ts:212](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L212)* **Type parameters:** @@ -180,7 +180,7 @@ ___ *Inherited from [IType](itype.md).[is](itype.md#is)* -*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L104)* +*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L104)* Checks if a given snapshot / instance is of the given type. @@ -200,7 +200,7 @@ ___ ▸ **named**(`newName`: string): *[IModelType](imodeltype.md)‹PROPS, OTHERS, CustomC, CustomS›* -*Defined in [src/types/complex-types/model.ts:192](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L192)* +*Defined in [src/types/complex-types/model.ts:192](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L192)* **Parameters:** @@ -216,7 +216,7 @@ ___ ▸ **postProcessSnapshot**<**NewS**>(`fn`: function): *[IModelType](imodeltype.md)‹PROPS, OTHERS, CustomC, NewS›* -*Defined in [src/types/complex-types/model.ts:220](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L220)* +*Defined in [src/types/complex-types/model.ts:220](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L220)* **Type parameters:** @@ -242,7 +242,7 @@ ___ ▸ **preProcessSnapshot**<**NewC**>(`fn`: function): *[IModelType](imodeltype.md)‹PROPS, OTHERS, NewC, CustomS›* -*Defined in [src/types/complex-types/model.ts:216](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L216)* +*Defined in [src/types/complex-types/model.ts:216](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L216)* **Type parameters:** @@ -268,7 +268,7 @@ ___ ▸ **props**<**PROPS2**>(`props`: PROPS2): *[IModelType](imodeltype.md)‹PROPS & ModelPropertiesDeclarationToProperties‹PROPS2›, OTHERS, CustomC, CustomS›* -*Defined in [src/types/complex-types/model.ts:196](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L196)* +*Defined in [src/types/complex-types/model.ts:196](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L196)* **Type parameters:** @@ -290,7 +290,7 @@ ___ *Inherited from [IType](itype.md).[validate](itype.md#validate)* -*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L113)* +*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L113)* Run's the type's typechecker on the given value with the given validation context. @@ -311,7 +311,7 @@ ___ ▸ **views**<**V**>(`fn`: function): *[IModelType](imodeltype.md)‹PROPS, OTHERS & V, CustomC, CustomS›* -*Defined in [src/types/complex-types/model.ts:200](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L200)* +*Defined in [src/types/complex-types/model.ts:200](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L200)* **Type parameters:** @@ -337,7 +337,7 @@ ___ ▸ **volatile**<**TP**>(`fn`: function): *[IModelType](imodeltype.md)‹PROPS, OTHERS & TP, CustomC, CustomS›* -*Defined in [src/types/complex-types/model.ts:208](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/complex-types/model.ts#L208)* +*Defined in [src/types/complex-types/model.ts:208](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/complex-types/model.ts#L208)* **Type parameters:** diff --git a/docs/API/interfaces/ipatchrecorder.md b/docs/API/interfaces/ipatchrecorder.md index 86d90bf2e..034a974a1 100644 --- a/docs/API/interfaces/ipatchrecorder.md +++ b/docs/API/interfaces/ipatchrecorder.md @@ -4,7 +4,7 @@ title: "IPatchRecorder" sidebar_label: "IPatchRecorder" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IPatchRecorder](ipatchrecorder.md) +[mobx-state-tree - v6.0.0](../index.md) › [IPatchRecorder](ipatchrecorder.md) ## Hierarchy @@ -32,7 +32,7 @@ sidebar_label: "IPatchRecorder" • **inversePatches**: *ReadonlyArray‹[IJsonPatch](ijsonpatch.md)›* -*Defined in [src/core/mst-operations.ts:138](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L138)* +*Defined in [src/core/mst-operations.ts:137](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L137)* ___ @@ -40,7 +40,7 @@ ___ • **patches**: *ReadonlyArray‹[IJsonPatch](ijsonpatch.md)›* -*Defined in [src/core/mst-operations.ts:137](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L137)* +*Defined in [src/core/mst-operations.ts:136](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L136)* ___ @@ -48,7 +48,7 @@ ___ • **recording**: *boolean* -*Defined in [src/core/mst-operations.ts:140](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L140)* +*Defined in [src/core/mst-operations.ts:139](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L139)* ___ @@ -56,7 +56,7 @@ ___ • **reversedInversePatches**: *ReadonlyArray‹[IJsonPatch](ijsonpatch.md)›* -*Defined in [src/core/mst-operations.ts:139](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L139)* +*Defined in [src/core/mst-operations.ts:138](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L138)* ## Methods @@ -64,7 +64,7 @@ ___ ▸ **replay**(`target?`: IAnyStateTreeNode): *void* -*Defined in [src/core/mst-operations.ts:143](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L143)* +*Defined in [src/core/mst-operations.ts:142](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L142)* **Parameters:** @@ -80,7 +80,7 @@ ___ ▸ **resume**(): *void* -*Defined in [src/core/mst-operations.ts:142](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L142)* +*Defined in [src/core/mst-operations.ts:141](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L141)* **Returns:** *void* @@ -90,7 +90,7 @@ ___ ▸ **stop**(): *void* -*Defined in [src/core/mst-operations.ts:141](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L141)* +*Defined in [src/core/mst-operations.ts:140](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L140)* **Returns:** *void* @@ -100,7 +100,7 @@ ___ ▸ **undo**(`target?`: IAnyStateTreeNode): *void* -*Defined in [src/core/mst-operations.ts:144](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/mst-operations.ts#L144)* +*Defined in [src/core/mst-operations.ts:143](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/mst-operations.ts#L143)* **Parameters:** diff --git a/docs/API/interfaces/ireversiblejsonpatch.md b/docs/API/interfaces/ireversiblejsonpatch.md index 294feddc0..5ba7178bd 100644 --- a/docs/API/interfaces/ireversiblejsonpatch.md +++ b/docs/API/interfaces/ireversiblejsonpatch.md @@ -4,7 +4,7 @@ title: "IReversibleJsonPatch" sidebar_label: "IReversibleJsonPatch" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IReversibleJsonPatch](ireversiblejsonpatch.md) +[mobx-state-tree - v6.0.0](../index.md) › [IReversibleJsonPatch](ireversiblejsonpatch.md) ## Hierarchy @@ -27,7 +27,7 @@ sidebar_label: "IReversibleJsonPatch" • **oldValue**: *any* -*Defined in [src/core/json-patch.ts:14](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L14)* +*Defined in [src/core/json-patch.ts:14](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L14)* ___ @@ -37,7 +37,7 @@ ___ *Inherited from [IJsonPatch](ijsonpatch.md).[op](ijsonpatch.md#op)* -*Defined in [src/core/json-patch.ts:8](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L8)* +*Defined in [src/core/json-patch.ts:8](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L8)* ___ @@ -47,7 +47,7 @@ ___ *Inherited from [IJsonPatch](ijsonpatch.md).[path](ijsonpatch.md#path)* -*Defined in [src/core/json-patch.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L9)* +*Defined in [src/core/json-patch.ts:9](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L9)* ___ @@ -57,4 +57,4 @@ ___ *Inherited from [IJsonPatch](ijsonpatch.md).[value](ijsonpatch.md#optional-value)* -*Defined in [src/core/json-patch.ts:10](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/json-patch.ts#L10)* +*Defined in [src/core/json-patch.ts:10](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/json-patch.ts#L10)* diff --git a/docs/API/interfaces/iserializedactioncall.md b/docs/API/interfaces/iserializedactioncall.md index e80bbeac0..315574434 100644 --- a/docs/API/interfaces/iserializedactioncall.md +++ b/docs/API/interfaces/iserializedactioncall.md @@ -4,7 +4,7 @@ title: "ISerializedActionCall" sidebar_label: "ISerializedActionCall" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [ISerializedActionCall](iserializedactioncall.md) +[mobx-state-tree - v6.0.0](../index.md) › [ISerializedActionCall](iserializedactioncall.md) ## Hierarchy @@ -24,7 +24,7 @@ sidebar_label: "ISerializedActionCall" • **args**? : *any[]* -*Defined in [src/middlewares/on-action.ts:33](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L33)* +*Defined in [src/middlewares/on-action.ts:33](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L33)* ___ @@ -32,7 +32,7 @@ ___ • **name**: *string* -*Defined in [src/middlewares/on-action.ts:31](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L31)* +*Defined in [src/middlewares/on-action.ts:31](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L31)* ___ @@ -40,4 +40,4 @@ ___ • **path**? : *undefined | string* -*Defined in [src/middlewares/on-action.ts:32](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/middlewares/on-action.ts#L32)* +*Defined in [src/middlewares/on-action.ts:32](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/middlewares/on-action.ts#L32)* diff --git a/docs/API/interfaces/isimpletype.md b/docs/API/interfaces/isimpletype.md index b9b803567..40e89ae8e 100644 --- a/docs/API/interfaces/isimpletype.md +++ b/docs/API/interfaces/isimpletype.md @@ -4,7 +4,7 @@ title: "ISimpleType" sidebar_label: "ISimpleType" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [ISimpleType](isimpletype.md) +[mobx-state-tree - v6.0.0](../index.md) › [ISimpleType](isimpletype.md) A simple type, this is, a type where the instance and the snapshot representation are the same. @@ -40,7 +40,7 @@ A simple type, this is, a type where the instance and the snapshot representatio *Inherited from [IType](itype.md).[identifierAttribute](itype.md#optional-identifierattribute)* -*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L89)* +*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L89)* Name of the identifier attribute or null if none. @@ -52,7 +52,7 @@ ___ *Inherited from [IType](itype.md).[name](itype.md#name)* -*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L84)* +*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L84)* Friendly type name. @@ -64,7 +64,7 @@ Friendly type name. *Inherited from [IType](itype.md).[create](itype.md#create)* -*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L96)* +*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L96)* Creates an instance for the type given an snapshot input. @@ -87,7 +87,7 @@ ___ *Inherited from [IType](itype.md).[describe](itype.md#describe)* -*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L118)* +*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L118)* Gets the textual representation of the type as a string. @@ -101,7 +101,7 @@ ___ *Inherited from [IType](itype.md).[is](itype.md#is)* -*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L104)* +*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L104)* Checks if a given snapshot / instance is of the given type. @@ -123,7 +123,7 @@ ___ *Inherited from [IType](itype.md).[validate](itype.md#validate)* -*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L113)* +*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L113)* Run's the type's typechecker on the given value with the given validation context. diff --git a/docs/API/interfaces/isnapshotprocessor.md b/docs/API/interfaces/isnapshotprocessor.md index 028dd92ee..7c95175d2 100644 --- a/docs/API/interfaces/isnapshotprocessor.md +++ b/docs/API/interfaces/isnapshotprocessor.md @@ -4,7 +4,7 @@ title: "ISnapshotProcessor" sidebar_label: "ISnapshotProcessor" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [ISnapshotProcessor](isnapshotprocessor.md) +[mobx-state-tree - v6.0.0](../index.md) › [ISnapshotProcessor](isnapshotprocessor.md) A type that has its snapshots processed. @@ -44,7 +44,7 @@ A type that has its snapshots processed. *Inherited from [IType](itype.md).[identifierAttribute](itype.md#optional-identifierattribute)* -*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L89)* +*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L89)* Name of the identifier attribute or null if none. @@ -56,7 +56,7 @@ ___ *Inherited from [IType](itype.md).[name](itype.md#name)* -*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L84)* +*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L84)* Friendly type name. @@ -68,7 +68,7 @@ Friendly type name. *Inherited from [IType](itype.md).[create](itype.md#create)* -*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L96)* +*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L96)* Creates an instance for the type given an snapshot input. @@ -91,7 +91,7 @@ ___ *Inherited from [IType](itype.md).[describe](itype.md#describe)* -*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L118)* +*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L118)* Gets the textual representation of the type as a string. @@ -105,7 +105,7 @@ ___ *Inherited from [IType](itype.md).[is](itype.md#is)* -*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L104)* +*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L104)* Checks if a given snapshot / instance is of the given type. @@ -127,7 +127,7 @@ ___ *Inherited from [IType](itype.md).[validate](itype.md#validate)* -*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L113)* +*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L113)* Run's the type's typechecker on the given value with the given validation context. diff --git a/docs/API/interfaces/isnapshotprocessors.md b/docs/API/interfaces/isnapshotprocessors.md index 9ea7b3bbc..3f8e78716 100644 --- a/docs/API/interfaces/isnapshotprocessors.md +++ b/docs/API/interfaces/isnapshotprocessors.md @@ -4,7 +4,7 @@ title: "ISnapshotProcessors" sidebar_label: "ISnapshotProcessors" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [ISnapshotProcessors](isnapshotprocessors.md) +[mobx-state-tree - v6.0.0](../index.md) › [ISnapshotProcessors](isnapshotprocessors.md) Snapshot processors. @@ -33,7 +33,7 @@ Snapshot processors. ▸ **postProcessor**(`snapshot`: IT["SnapshotType"], `node`: [Instance](../index.md#instance)‹IT›): *CustomS* -*Defined in [src/types/utility-types/snapshotProcessor.ts:211](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/snapshotProcessor.ts#L211)* +*Defined in [src/types/utility-types/snapshotProcessor.ts:211](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/snapshotProcessor.ts#L211)* Function that transforms an output snapshot. @@ -52,7 +52,7 @@ ___ ▸ **preProcessor**(`snapshot`: CustomC): *IT["CreationType"]* -*Defined in [src/types/utility-types/snapshotProcessor.ts:206](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/snapshotProcessor.ts#L206)* +*Defined in [src/types/utility-types/snapshotProcessor.ts:206](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/snapshotProcessor.ts#L206)* Function that transforms an input snapshot. diff --git a/docs/API/interfaces/itype.md b/docs/API/interfaces/itype.md index 5405afafc..b8b285bc3 100644 --- a/docs/API/interfaces/itype.md +++ b/docs/API/interfaces/itype.md @@ -4,7 +4,7 @@ title: "IType" sidebar_label: "IType" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IType](itype.md) +[mobx-state-tree - v6.0.0](../index.md) › [IType](itype.md) A type, either complex or simple. @@ -50,7 +50,7 @@ A type, either complex or simple. • **identifierAttribute**? : *undefined | string* -*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L89)* +*Defined in [src/core/type/type.ts:89](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L89)* Name of the identifier attribute or null if none. @@ -60,7 +60,7 @@ ___ • **name**: *string* -*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L84)* +*Defined in [src/core/type/type.ts:84](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L84)* Friendly type name. @@ -70,7 +70,7 @@ Friendly type name. ▸ **create**(`snapshot?`: [C](undefined), `env?`: any): *this["Type"]* -*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L96)* +*Defined in [src/core/type/type.ts:96](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L96)* Creates an instance for the type given an snapshot input. @@ -91,7 +91,7 @@ ___ ▸ **describe**(): *string* -*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L118)* +*Defined in [src/core/type/type.ts:118](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L118)* Gets the textual representation of the type as a string. @@ -103,7 +103,7 @@ ___ ▸ **is**(`thing`: any): *thing is C | this["Type"]* -*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L104)* +*Defined in [src/core/type/type.ts:104](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L104)* Checks if a given snapshot / instance is of the given type. @@ -123,7 +123,7 @@ ___ ▸ **validate**(`thing`: C, `context`: [IValidationContext](../index.md#ivalidationcontext)): *[IValidationResult](../index.md#ivalidationresult)* -*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type.ts#L113)* +*Defined in [src/core/type/type.ts:113](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type.ts#L113)* Run's the type's typechecker on the given value with the given validation context. diff --git a/docs/API/interfaces/ivalidationcontextentry.md b/docs/API/interfaces/ivalidationcontextentry.md index a8e9258f7..b71eab63e 100644 --- a/docs/API/interfaces/ivalidationcontextentry.md +++ b/docs/API/interfaces/ivalidationcontextentry.md @@ -4,7 +4,7 @@ title: "IValidationContextEntry" sidebar_label: "IValidationContextEntry" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IValidationContextEntry](ivalidationcontextentry.md) +[mobx-state-tree - v6.0.0](../index.md) › [IValidationContextEntry](ivalidationcontextentry.md) Validation context entry, this is, where the validation should run against which type @@ -25,7 +25,7 @@ Validation context entry, this is, where the validation should run against which • **path**: *string* -*Defined in [src/core/type/type-checker.ts:17](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type-checker.ts#L17)* +*Defined in [src/core/type/type-checker.ts:17](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type-checker.ts#L17)* Subpath where the validation should be run, or an empty string to validate it all @@ -35,6 +35,6 @@ ___ • **type**: *[IAnyType](ianytype.md)* -*Defined in [src/core/type/type-checker.ts:19](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type-checker.ts#L19)* +*Defined in [src/core/type/type-checker.ts:19](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type-checker.ts#L19)* Type to validate the subpath against diff --git a/docs/API/interfaces/ivalidationerror.md b/docs/API/interfaces/ivalidationerror.md index dc8280225..060ff978b 100644 --- a/docs/API/interfaces/ivalidationerror.md +++ b/docs/API/interfaces/ivalidationerror.md @@ -4,7 +4,7 @@ title: "IValidationError" sidebar_label: "IValidationError" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [IValidationError](ivalidationerror.md) +[mobx-state-tree - v6.0.0](../index.md) › [IValidationError](ivalidationerror.md) Type validation error @@ -26,7 +26,7 @@ Type validation error • **context**: *[IValidationContext](../index.md#ivalidationcontext)* -*Defined in [src/core/type/type-checker.ts:28](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type-checker.ts#L28)* +*Defined in [src/core/type/type-checker.ts:28](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type-checker.ts#L28)* Validation context @@ -36,7 +36,7 @@ ___ • **message**? : *undefined | string* -*Defined in [src/core/type/type-checker.ts:32](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type-checker.ts#L32)* +*Defined in [src/core/type/type-checker.ts:32](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type-checker.ts#L32)* Error message @@ -46,6 +46,6 @@ ___ • **value**: *any* -*Defined in [src/core/type/type-checker.ts:30](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/core/type/type-checker.ts#L30)* +*Defined in [src/core/type/type-checker.ts:30](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/core/type/type-checker.ts#L30)* Value that was being validated, either a snapshot or an instance diff --git a/docs/API/interfaces/referenceoptionsgetset.md b/docs/API/interfaces/referenceoptionsgetset.md index 3f5757e32..04a050926 100644 --- a/docs/API/interfaces/referenceoptionsgetset.md +++ b/docs/API/interfaces/referenceoptionsgetset.md @@ -4,7 +4,7 @@ title: "ReferenceOptionsGetSet" sidebar_label: "ReferenceOptionsGetSet" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [ReferenceOptionsGetSet](referenceoptionsgetset.md) +[mobx-state-tree - v6.0.0](../index.md) › [ReferenceOptionsGetSet](referenceoptionsgetset.md) ## Type parameters @@ -27,7 +27,7 @@ sidebar_label: "ReferenceOptionsGetSet" ▸ **get**(`identifier`: [ReferenceIdentifier](../index.md#referenceidentifier), `parent`: IAnyStateTreeNode | null): *ReferenceT‹IT›* -*Defined in [src/types/utility-types/reference.ts:442](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/reference.ts#L442)* +*Defined in [src/types/utility-types/reference.ts:442](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/reference.ts#L442)* **Parameters:** @@ -44,7 +44,7 @@ ___ ▸ **set**(`value`: ReferenceT‹IT›, `parent`: IAnyStateTreeNode | null): *[ReferenceIdentifier](../index.md#referenceidentifier)* -*Defined in [src/types/utility-types/reference.ts:443](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/reference.ts#L443)* +*Defined in [src/types/utility-types/reference.ts:443](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/reference.ts#L443)* **Parameters:** diff --git a/docs/API/interfaces/referenceoptionsoninvalidated.md b/docs/API/interfaces/referenceoptionsoninvalidated.md index 30d3a8332..fecd7a16f 100644 --- a/docs/API/interfaces/referenceoptionsoninvalidated.md +++ b/docs/API/interfaces/referenceoptionsoninvalidated.md @@ -4,7 +4,7 @@ title: "ReferenceOptionsOnInvalidated" sidebar_label: "ReferenceOptionsOnInvalidated" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [ReferenceOptionsOnInvalidated](referenceoptionsoninvalidated.md) +[mobx-state-tree - v6.0.0](../index.md) › [ReferenceOptionsOnInvalidated](referenceoptionsoninvalidated.md) ## Type parameters @@ -26,4 +26,4 @@ sidebar_label: "ReferenceOptionsOnInvalidated" • **onInvalidated**: *[OnReferenceInvalidated](../index.md#onreferenceinvalidated)‹ReferenceT‹IT››* -*Defined in [src/types/utility-types/reference.ts:448](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/reference.ts#L448)* +*Defined in [src/types/utility-types/reference.ts:448](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/reference.ts#L448)* diff --git a/docs/API/interfaces/unionoptions.md b/docs/API/interfaces/unionoptions.md index 05d60ae56..f775dc914 100644 --- a/docs/API/interfaces/unionoptions.md +++ b/docs/API/interfaces/unionoptions.md @@ -4,7 +4,7 @@ title: "UnionOptions" sidebar_label: "UnionOptions" --- -[mobx-state-tree - v5.4.2-pre.1](../index.md) › [UnionOptions](unionoptions.md) +[mobx-state-tree - v6.0.0](../index.md) › [UnionOptions](unionoptions.md) ## Hierarchy @@ -23,7 +23,7 @@ sidebar_label: "UnionOptions" • **dispatcher**? : *[ITypeDispatcher](../index.md#itypedispatcher)* -*Defined in [src/types/utility-types/union.ts:26](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/union.ts#L26)* +*Defined in [src/types/utility-types/union.ts:26](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/union.ts#L26)* ___ @@ -31,4 +31,4 @@ ___ • **eager**? : *undefined | false | true* -*Defined in [src/types/utility-types/union.ts:25](https://github.com/mobxjs/mobx-state-tree/blob/0993cb9f/src/types/utility-types/union.ts#L25)* +*Defined in [src/types/utility-types/union.ts:25](https://github.com/mobxjs/mobx-state-tree/blob/72f4f644/src/types/utility-types/union.ts#L25)* diff --git a/package.json b/package.json index 501e625d0..750cfef1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mobx-state-tree", - "version": "5.4.2-pre.1", + "version": "6.0.0", "description": "Opinionated, transactional, MobX powered state container", "main": "dist/mobx-state-tree.js", "umd:main": "dist/mobx-state-tree.umd.js", diff --git a/website/i18n/en.json b/website/i18n/en.json index 6af511729..1ec50c36d 100644 --- a/website/i18n/en.json +++ b/website/i18n/en.json @@ -9,7 +9,7 @@ "title": "API_header" }, "API/index": { - "title": "mobx-state-tree - v5.4.2-pre.1", + "title": "mobx-state-tree - v6.0.0", "sidebar_label": "Globals" }, "API/interfaces/customtypeoptions": { diff --git a/website/sidebars.json b/website/sidebars.json index b7af7fea4..251ba2212 100644 --- a/website/sidebars.json +++ b/website/sidebars.json @@ -24,7 +24,11 @@ "concepts/reconciliation", "concepts/volatiles" ], - "API Overview": ["overview/types", "overview/api", "overview/hooks"], + "API Overview": [ + "overview/types", + "overview/api", + "overview/hooks" + ], "Tips": [ "tips/resources", "tips/contributing", @@ -35,14 +39,18 @@ "tips/snapshots-as-values", "tips/more-tips" ], - "Compare": ["compare/context-reducer-vs-mobx-state-tree"], + "Compare": [ + "compare/context-reducer-vs-mobx-state-tree" + ], "Recipes": [ "recipes/auto-generated-property-setter-actions", "recipes/pre-built-form-types-with-mst-form-type" ] }, "mobx-state-tree": { - "Introduction": ["API/index"], + "Introduction": [ + "API/index" + ], "Interfaces": [ "API/interfaces/customtypeoptions", "API/interfaces/functionwithflag", @@ -74,4 +82,4 @@ "API/interfaces/unionoptions" ] } -} +} \ No newline at end of file