Skip to content

[types/react] Fix regression with PropsWithChildren [The Travis build is lying]#33462

Merged
sandersn merged 3 commits intoDefinitelyTyped:masterfrom
VincentLanglet:patch-1
Mar 6, 2019
Merged

[types/react] Fix regression with PropsWithChildren [The Travis build is lying]#33462
sandersn merged 3 commits intoDefinitelyTyped:masterfrom
VincentLanglet:patch-1

Conversation

@VincentLanglet
Copy link
Copy Markdown
Contributor

@VincentLanglet VincentLanglet commented Feb 28, 2019

There is already two issues talking about issue with the introduction of PropsWithChildren.
#33461
#33416

This type is an helper for a functional component

const Foo = (props: PropsWithChildren<FooProps>) => ...

I don't really understand why the change Readonly<P & { children?: ReactNode }> instead of Readonly<P> & Readonly<{ children?: ReactNode }> breaks something but the use of the helper in this case is not necessary so, quicker way to fix the regression is to revert this line.

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Feb 28, 2019

@VincentLanglet Thank you for submitting this PR!

🔔 @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @tkrotoff @DovydasNavickas @onigoetz @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @Hotell @franklixuefei @Jessidhia @pshrmn @threepointone - 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
Copy Markdown
Contributor

typescript-bot commented Feb 28, 2019

@VincentLanglet 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!

Copy link
Copy Markdown
Contributor

@ferdaber ferdaber left a comment

Choose a reason for hiding this comment

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

I did notice this when I was playing around with HOCs but didn't have time to look into it :/

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Feb 28, 2019
@VincentLanglet
Copy link
Copy Markdown
Contributor Author

@sandersn HI, I have some issue with the time taken by the CI build.

@VincentLanglet VincentLanglet changed the title [types/react] Fix regression with PropsWithChildren [types/react] Fix regression with PropsWithChildren [The Travis build is lying] Mar 1, 2019
@VincentLanglet
Copy link
Copy Markdown
Contributor Author

@gabritto Hi, you're the last one who merge some PR in this repo.
Can you look at this one please ? This is a bug fix, and the tests are failing only because of timeout.

@typescript-bot
Copy link
Copy Markdown
Contributor

@VincentLanglet I haven't seen anything from you in a while and this PR currently has problems that prevent it from being merged. The PR will be closed tomorrow if there aren't new commits to fix the issues.

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Mar 6, 2019

@VincentLanglet 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!

@VincentLanglet
Copy link
Copy Markdown
Contributor Author

@Jessidhia @johnnyreilly Hi ! The tests are always getting timeout...

@ferdaber
Copy link
Copy Markdown
Contributor

ferdaber commented Mar 6, 2019

Calling @sandersn for manual intervention. @VincentLanglet if you run the tests locally and post the logs here someone can merge it manually without the bot.

@sandersn
Copy link
Copy Markdown
Contributor

sandersn commented Mar 6, 2019

@ferdaber is right, except you don't need to post the logs. I'll believe you. :)

Edit: the command is npm run test

@VincentLanglet
Copy link
Copy Markdown
Contributor Author

The test passed locally

@sandersn sandersn merged commit 4de5967 into DefinitelyTyped:master Mar 6, 2019
@typescript-bot
Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Owner Approved A listed owner of this package signed off on the pull request. Popular package This PR affects a popular package (as counted by NPM download counts).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants