Skip to content

Releases: farwayer/mst-decorators

2.0.0

02 Sep 13:23
Compare
Choose a tag to compare
  • @flow and @action decorators removed. All simple functions
    (except @view'ed) will be considered as actions. All generators will become
    flow's. getters will become views. Use @view for parametrized views.
  • field with model type will not be automatically initialized with empty objects
    any more. So this code will throw error in new version:
@model class Base {}

@model class Container {
  @Base base
}

Use default value

@model class Container {
  @Base base = {}
}

or auto: true option instead:

@model({auto: true}) class Base {}

@model class Container {
  @Base base
}
  • basic typescript definitions