3.0.5 • Published 7 years ago

h-mst v3.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

h-mst

Note 0.0.42 is the last version of this module that has .d.ts files for mobx-state-tree, mobx-state-tree 3.0.0 and later take advantage of typescript 2.8 so this module is no longer needed for that purpose please read the legacy readme below for the old instructions

Adds a few helpers for mobx-state-tree. One is a nullable type and another is a snippet MSTModelSnippet that will generate code that significantly speeds up typescript compile times. It is intended to be used with inline-codegen.

They are both pretty experimental so I wouldn't suggest using them.

Legacy README

Replacement of the types.{model,map,...} factories for mobx-state-tree

Requires typescript >= 2.8 (as it uses conditional types)

Prequisites

Ensure you have typescript 2.8rc or later

yarn add typescript@rc

Ensure you have mobx-state-tree (^2.0.1) installed (h-mst uses it as a peer dependency)

yarn add mobx-state-tree

Usage

1. Add to project

yarn add h-mst

2. Replace

import {types} from "mobx-state-tree"

With:

import {types} from "h-mst"

Github

This was quickly spun off a larger project so there isn't a proper repo for it. However there is some discussion here:

https://github.com/mobxjs/mobx-state-tree/issues/705

3.0.5

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

0.0.42

7 years ago

0.0.40

7 years ago

0.0.39

7 years ago

0.0.38

7 years ago

0.0.37

7 years ago

0.0.36

7 years ago

0.0.35

7 years ago

0.0.34

7 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.31

7 years ago

0.0.30

7 years ago

0.0.29

7 years ago

0.0.28

7 years ago

0.0.27

7 years ago

0.0.26

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago