Skip to content

Commit

Permalink
docs: add API section
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Dec 30, 2016
1 parent b8d20ac commit e28915c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ const benjy = modelExtend(human, {
});
````

## API

### modelExtend(...models) => Model

Behaviour:
* The `model.namespace` will be overrided by latter model.
* `model[state|subscriptions|effects|reducers]` will be merged as `Object.assign`.
* `model.state` will be overrided be latter model if it isn't an object.

## License

MIT

0 comments on commit e28915c

Please sign in to comment.