flow-immutable-models icon indicating copy to clipboard operation
flow-immutable-models copied to clipboard

Generates model classes from Flow types using Immutable.js

Results 8 flow-immutable-models issues
Sort by recently updated
recently updated
newest added

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...

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...

enhancement
ready

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...

ready

The README currently doesn't describe how to use default values and we don't currently have any tests including default values.

ready

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...