Skip to content

[WIP] Bring typings from DefinitelyTyped into this repo#690

Merged
kentcdodds merged 2 commits into
testing-library:masterfrom
samtsai:bring-typings-in-house
Jun 4, 2020
Merged

[WIP] Bring typings from DefinitelyTyped into this repo#690
kentcdodds merged 2 commits into
testing-library:masterfrom
samtsai:bring-typings-in-house

Conversation

@samtsai

@samtsai samtsai commented Jun 3, 2020

Copy link
Copy Markdown
Collaborator

What:
Improve support of typings by bringing them into this repo instead of relying on a versioned external repo

Why:
Help with stability for consumers using typings and give a clearer understanding of what should be supported in a given version without having to reference multiple repos.

How:
Modeled after these changes in a sibling repo: testing-library/dom-testing-library#530

Checklist:

  • Documentation added to the
    docs site
  • Tests
  • Typescript definitions updated
  • Ready to be merged

Currently this does not validate with several errors for [email protected], example:

ERROR: 6:23   expect      [email protected] compile error:
Cannot use JSX unless the '--jsx' flag is provided.

I'm still investigating this, but if anyone knows more about dtslint I'm all 👂

@codesandbox-ci

codesandbox-ci Bot commented Jun 3, 2020

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b0d9a33:

Sandbox Source
elegant-star-vwz3u Configuration
cold-sunset-6uo84 Configuration

Comment thread types/index.d.ts
@@ -0,0 +1,59 @@
// TypeScript Version: 3.8

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@kentcdodds

Copy link
Copy Markdown
Member

Looks awesome. I don't know about the dtslint stuff, but once that's worked out I'm good to merge 👍 Thanks!

Add `pure.d.ts` that re-exports everything from `index.d.ts`
Turn off `whitespace` rule
@codecov

codecov Bot commented Jun 4, 2020

Copy link
Copy Markdown

Codecov Report

Merging #690 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #690   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines           99        99           
  Branches        15        15           
=========================================
  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 c3008be...b0d9a33. Read the comment docs.

@kentcdodds kentcdodds left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sweet! Thanks!

@kentcdodds
kentcdodds merged commit 16f2f56 into testing-library:master Jun 4, 2020
@kentcdodds

Copy link
Copy Markdown
Member

@all-contributors please add @samtsai for code and tests

@allcontributors

Copy link
Copy Markdown
Contributor

@kentcdodds

I've put up a pull request to add @samtsai! 🎉

@kentcdodds

Copy link
Copy Markdown
Member

🎉 This PR is included in version 10.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kentcdodds

Copy link
Copy Markdown
Member

Thanks so much for your help! I've added you as a collaborator on the project. Please make sure that you review the other/MAINTAINING.md and CONTRIBUTING.md files (specifically the bit about the commit messages and the git hooks) and familiarize yourself with the code of conduct (we're using the contributor covenant). You might also want to watch the repo to be notified when someone files an issue/PR. Please continue to make PRs as you feel the need (you can make your branches directly on the repo rather than your fork if you want). Thanks! And welcome to the team :)

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants