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

Fix type of parameter widget in getWidget and hasWidget functions #1949

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

Klynger
Copy link
Contributor

@Klynger Klynger commented Jul 27, 2020

Reasons for making this change

These two functions receive widget that can be Widget | string, but in typings, this is not expressed.

More details can be found here where I add the same changes in V1: DefinitelyTyped/DefinitelyTyped#46374

If this is related to existing tickets, include links to them as well.

Extra information

I committed the changes made when I ran npm install for each package, but if there is any problem you can just comment in the PR and I can remove the commits

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests
    • I've updated docs if needed
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

@Klynger Klynger requested a review from agustin107 as a code owner July 27, 2020 17:47
Copy link
Member

@epicfaace epicfaace left a comment

Choose a reason for hiding this comment

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

Thanks! Can you remove the changes in the package-lock.json files?

@Klynger
Copy link
Contributor Author

Klynger commented Jul 27, 2020

Done @epicfaace! I made another in the return type of getWidget because it never returns Error, only throws it if there is a problem

@epicfaace epicfaace merged commit 655829b into rjsf-team:master Jul 27, 2020
epicfaace added a commit that referenced this pull request Jul 27, 2020
Similar to #1949 -- toConstant never returns an Error; it only throws an error.
epicfaace added a commit that referenced this pull request Jul 27, 2020
Similar to #1949 -- toConstant never returns an Error; it only throws an error.
@Klynger Klynger deleted the fix/get-widget-types branch July 28, 2020 21:49
Xtremilicious pushed a commit to MLH-Fellowship/react-jsonschema-form that referenced this pull request Jul 30, 2020
Xtremilicious pushed a commit to MLH-Fellowship/react-jsonschema-form that referenced this pull request Jul 30, 2020
Similar to rjsf-team#1949 -- toConstant never returns an Error; it only throws an error.
zepatrik pushed a commit to zepatrik/react-jsonschema-form that referenced this pull request Jul 30, 2020
zepatrik pushed a commit to zepatrik/react-jsonschema-form that referenced this pull request Jul 30, 2020
Similar to rjsf-team#1949 -- toConstant never returns an Error; it only throws an error.
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