Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: support TypeScript v3 #241

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

Merged
afontcu merged 2 commits into testing-library:master from blimmer:bug/fix-types
Jul 6, 2021
Merged

Conversation

@blimmer
Copy link
Contributor

@blimmer blimmer commented Jun 29, 2021
edited
Loading

I'm not sure if there's a more clever way to do this, but this should work. The linked issue has a reproduction example.

Fixes #240

Copy link

codecov bot commented Jun 29, 2021
edited
Loading

Codecov Report

Merging #241 (b6449f3) into master (96c0c2d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@
## master #241 +/- ##
=========================================
 Coverage 100.00% 100.00% 
=========================================
 Files 3 3 
 Lines 99 99 
 Branches 34 34 
=========================================
 Hits 99 99 

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96c0c2d...b6449f3. Read the comment docs.

baseElement?: Element
}

type ConfigurationArgs = [
Copy link
Member

@afontcu afontcu Jul 6, 2021

Choose a reason for hiding this comment

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

out of curiosity, is this just a syntax change because TS 3.x does not support this type definition syntax?

Copy link
Contributor Author

@blimmer blimmer Jul 6, 2021

Choose a reason for hiding this comment

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

Correct - I believe that format is called "named tuple" which is a new TS v4 feature.

afontcu reacted with thumbs up emoji
@afontcu afontcu merged commit b028364 into testing-library:master Jul 6, 2021
Copy link

github-actions bot commented Jul 6, 2021

🎉 This PR is included in version 5.8.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Jun 8, 2022

🎉 This PR is included in version 6.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Reviewers

@afontcu afontcu afontcu left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Type errors with TypeScript 3.9.7

2 participants

AltStyle によって変換されたページ (->オリジナル) /