@jbrowse/mobx-state-tree 5.10.2 → 5.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/mobx-state-tree.cjs.map +1 -1
- package/dist/mobx-state-tree.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,4 +24,4 @@ Fork of mobx-state-tree v5.4.2 for use in jbrowse
|
|
|
24
24
|
- replaced `unique symbol` phantom properties (`$emptyObject`, `$stateTreeNodeType`) with
|
|
25
25
|
exported string-keyed brand interfaces (`$EmptyObjectBrand`, `$__mstStateTreeNodeType__`),
|
|
26
26
|
fixing tsgo TS4058/TS4023 errors when MST types propagate into exported function return types
|
|
27
|
-
- add reflection api getChildType
|
|
27
|
+
- add reflection api getChildType and getUnionSubtypes and getDefaultInstanceOrSnapshot
|
package/dist/index.d.ts
CHANGED
|
@@ -1711,7 +1711,7 @@ interface IModelType<PROPS extends ModelProperties, OTHERS, CustomC = _NotCustom
|
|
|
1711
1711
|
views?: V;
|
|
1712
1712
|
state?: VS;
|
|
1713
1713
|
}): IModelType<PROPS, OTHERS & A & V & VS, CustomC, CustomS>;
|
|
1714
|
-
preProcessSnapshot<NewC = ModelCreationType2<PROPS, CustomC>>(fn: (snapshot: NewC) => ModelCreationType2<PROPS, CustomC>): IModelType<PROPS, OTHERS,
|
|
1714
|
+
preProcessSnapshot<NewC = ModelCreationType2<PROPS, CustomC>>(fn: (snapshot: NewC) => ModelCreationType2<PROPS, CustomC> | NewC): IModelType<PROPS, OTHERS, CustomC, CustomS>;
|
|
1715
1715
|
postProcessSnapshot<NewS = ModelSnapshotType2<PROPS, CustomS>>(fn: (snapshot: ModelSnapshotType2<PROPS, CustomS>) => NewS): IModelType<PROPS, OTHERS, CustomC, NewS>;
|
|
1716
1716
|
}
|
|
1717
1717
|
/**
|