Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(model): refactor model initialize method #92

Merged
merged 2 commits into from
Apr 10, 2019
Merged

feat(model): refactor model initialize method #92

merged 2 commits into from
Apr 10, 2019

Conversation

ArrayZoneYour
Copy link
Contributor

Model() can accept single model

Model() can accept single model
@codecov
Copy link

codecov bot commented Apr 3, 2019

Codecov Report

Merging #92 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #92   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           4      4           
  Lines         203    224   +21     
  Branches       24     24           
=====================================
+ Hits          203    224   +21
Impacted Files Coverage Δ
src/index.tsx 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e51b26...12fce12. Read the comment docs.

(state, actions, params) => (params, { state, actions })

re #85, re #83
.github/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May use files field in package.json, works as whitelist for npm pack

Object.entries(models).forEach(([name, model]) => {
if (!Global.State[name]) {
Global.State[name] = model.state
const isNextModelType = (input: any): input is NextModelType => {
Copy link
Contributor

@leecade leecade Apr 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
  state: undefined
}

@leecade leecade merged commit b5e82af into master Apr 10, 2019
@ArrayZoneYour ArrayZoneYour deleted the feat/Model branch April 25, 2019 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants