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

fixed typos in readme #16

Closed
wants to merge 9 commits into from
Closed

Conversation

Gregjarvez
Copy link
Contributor

No description provided.

Give warning if something is returned from thunk immerjs#3
Give warning if something is returned from thunk immerjs#3
added comment
immer.js Outdated

//values either than undefined will trigger warning;
!Object.is(maybeVoidReturn, undefined) &&
console.warn(`Immer callback expects no return value. However %s was returned`, prettify(maybeVoidReturn))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since this is a pretty clear warning, I would keep it simple and just use typeof maybeVoidReturn without prettiefying.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did that initially . But null ,objects , arrays all printed object . I was thinking I could be more specific. I would use type of instead then

@@ -32,18 +32,32 @@ acorn-globals@^4.0.0:
dependencies:
acorn "^5.0.0"

acorn@^5.0.0, acorn@^5.1.2:
Copy link
Collaborator

Choose a reason for hiding this comment

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

any idea where these yarn.lock changes are coming from? Maybe a different yarn version (I am on 1.3.2). Since there are no changes in package json, I would expect none here. You can fix it by usinggit checkout master yarn.lock.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm master yarn was not up to date either, just pushed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Silly me. I add eslint and prettier to almost every project. I removed it after. That should explain that I will fix it

@mweststrate
Copy link
Collaborator

mweststrate commented Jan 1, 2018 via email

@Gregjarvez
Copy link
Contributor Author

Sure. I will do that ;)

@mweststrate
Copy link
Collaborator

Merged, thanks a lot!

@mweststrate mweststrate closed this Jan 1, 2018
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