3.0.5 • Published 6 years ago

h-mst v3.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
6 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

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

0.0.42

6 years ago

0.0.40

6 years ago

0.0.39

6 years ago

0.0.38

6 years ago

0.0.37

6 years ago

0.0.36

6 years ago

0.0.35

6 years ago

0.0.34

6 years ago

0.0.33

6 years ago

0.0.32

6 years ago

0.0.31

6 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago