Skip to content

[react-big-calendar] add a new generic for resource type#30401

Merged
amcasey merged 5 commits intoDefinitelyTyped:masterfrom
onlyann:master
Dec 5, 2018
Merged

[react-big-calendar] add a new generic for resource type#30401
amcasey merged 5 commits intoDefinitelyTyped:masterfrom
onlyann:master

Conversation

@onlyann
Copy link
Contributor

@onlyann onlyann commented Nov 9, 2018

Please fill in this template.

Current definition incorrectly uses the same generic type for the resource and the event.
This also fixes the definition of onNavigate.

Upgrading to Typescript 2.9 since the example should be using a generic component and that is not supported by Typescript 2.8.

@typescript-bot typescript-bot added Other Approved This PR was reviewed and signed-off by a community member. The Travis CI build failed labels Nov 9, 2018
@typescript-bot
Copy link
Contributor

typescript-bot commented Nov 9, 2018

@onlyann Thank you for submitting this PR!

🔔 @piotrwitek @paustint @pikpok @eps1lon @strongpauly - please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead.

@typescript-bot
Copy link
Contributor

@onlyann The Travis CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot
Copy link
Contributor

We've gotten sign-off from a reviewer 👏. A maintainer will soon review this PR and merge it if there are no issues. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for contributing to DefinitelyTyped!

// Paul Potsides <https://github.com/strongpauly>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
// TypeScript Version: 2.9
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need to bump to 2.9?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To use generic JSX elements as it is done in the test file.
This landed in TS 2.9 : microsoft/TypeScript#22415

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eps1lon

What is the implication of bumping to TypeScript 2.9 other than to get the CI build to run the test under this version?
Will that prevent consumers of this package from using it with TS 2.8 ?

I can always change the syntax in the test file to satisfy TS 2.8 if preferred.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eps1lon I have changed the syntax to satisfy TS 2.8. Are you happy with the PR ?

Copy link
Contributor

Choose a reason for hiding this comment

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

You seem to have addressed his feedback.

@typescript-bot typescript-bot added Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. and removed Merge:LGTM labels Nov 20, 2018
@typescript-bot
Copy link
Contributor

@onlyann Unfortunately, this pull request currently has a merge conflict 😥. Please update your PR branch to be up-to-date with respect to master. Have a nice day!

@typescript-bot typescript-bot added Merge:LGTM and removed Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. labels Nov 21, 2018
@amcasey amcasey merged commit e1a9b84 into DefinitelyTyped:master Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Other Approved This PR was reviewed and signed-off by a community member.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants