flow-immutable-models
flow-immutable-models copied to clipboard
Generates model classes from Flow types using Immutable.js
Since you've gone to the trouble of writing JSCodeShift transforms, have you considered using a babel transform instead? They're actually quite similar. Using babel would make it easier to transparently...
When we instantiate a model, it's critical to make sure not to use properties that are not part of the model type, especially because it can be the result of...
Should address #4
In order to support serialization, provide a `toJS` (and `toJSON` alias) function to convert the ImmutableModel into its modelType form.
When defining a model type with a property of another model type like this: ```js export type MyModelType { field: OtherModelType, }; ``` the `fromJS` function for `MyModelType` calls the...
The current code requires that `ImmutableModel` must exist in a model file for it to be functional. It would be nice to include that import in the generated portion of...
The README currently doesn't describe how to use default values and we don't currently have any tests including default values.
Explore extending Immutable.Record with same getters / setters. With this approach, we might be able to add in default values (initialValues variable) so we can be more sure about types...