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

Type ReactErrorUtils #7565

Merged
merged 1 commit into from Aug 25, 2016
Merged

Type ReactErrorUtils #7565

merged 1 commit into from Aug 25, 2016

Conversation

vjeux
Copy link
Contributor

@vjeux vjeux commented Aug 25, 2016

No description provided.

@@ -16,12 +17,17 @@ var caughtError = null;
/**
* Call a function while guarding against errors that happens within it.
*
* @param {?String} name of the guard to use for logging or debugging
* @param {String} name of the guard to use for logging or debugging
Copy link
Contributor Author

@vjeux vjeux Aug 25, 2016

Choose a reason for hiding this comment

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

In practice this is always called with a string. If I put it optional, then flow complains about the concatenation of react-${name} down below.

I chose to keep the types in the comments but we may want to get rid of them

@vjeux vjeux added this to the 15-next milestone Aug 25, 2016
@vjeux vjeux merged commit 03e8c0e into facebook:master Aug 25, 2016
@zpao zpao modified the milestones: 15-next, 15.4.0 Oct 4, 2016
zpao pushed a commit that referenced this pull request Oct 4, 2016
(cherry picked from commit 03e8c0e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants