Skip to content

Commit d9932f3

Browse files
committed
Upgrade mobx-state-tree version
1 parent 1490d2b commit d9932f3

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dependencies": {
2929
"lodash.memoize": "^4.1.2",
3030
"mobx": "^6.5.0",
31-
"mobx-state-tree": "^5.1.3",
31+
"mobx-state-tree": "^5.3.0",
3232
"reflect-metadata": "^0.1.13"
3333
},
3434
"devDependencies": {

pnpm-lock.yaml

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/enumeration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import memoize from "lodash.memoize";
55

66
class EnumerationType<EnumOptions extends string> extends BaseType<EnumOptions, EnumOptions, EnumOptions> {
77
constructor(readonly name: string, readonly options: readonly EnumOptions[]) {
8-
super(types.enumeration<EnumOptions>([...options]));
8+
super(types.enumeration<EnumOptions>(name, [...options]));
99
}
1010

1111
instantiate(snapshot: this["InputType"], _context: InstantiateContext, _parent: IStateTreeNode | null): this["InstanceType"] {

0 commit comments

Comments
 (0)