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

Move types from DefinitelyTyped to this repository #165

Merged
merged 6 commits into from
Nov 14, 2020
Merged

Conversation

afontcu
Copy link
Member

@afontcu afontcu commented Nov 1, 2020

Following the steps of DTL, RTL, and CTL, this PR brings types home.

Any feedback by TS pro's is really appreciated 🙌 @testing-library/core-maintainers

Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

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

LGTM

// eslint-disable-next-line @typescript-eslint/no-explicit-any
store: Store<any>,
router: Router,
) => Partial<ThisTypedMountOptions<V>> | void
Copy link
Member Author

@afontcu afontcu Nov 14, 2020

Choose a reason for hiding this comment

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

This line productes the following warning with latest config:

void is only valid as a return type or generic type variable
@typescript-eslint/no-invalid-void-type

not entirely sure I should be worried about this?

@codecov
Copy link

codecov bot commented Nov 14, 2020

Codecov Report

Merging #165 (34594eb) into master (53ff893) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #165   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           90        90           
  Branches        28        28           
=========================================
  Hits            90        90           

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 53ff893...34594eb. Read the comment docs.

@@ -1,4 +1,7 @@
module.exports = {
parserOptions: {
parser: '@typescript-eslint/parser',
Copy link
Member

Choose a reason for hiding this comment

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

Support for this is now built-in to the latest version of kcd-scripts (actually, eslint-config-kentcdodds, but that's what kcd-scripts uses).

Copy link
Member Author

Choose a reason for hiding this comment

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

That's what I assumed when I checked the changelogs, but sadly enough eslint-plugin-vue requires us to use parserOptions.parser option instead of parser, because the latest needs to be used internally to parse Vue files.

SFC are cool but come with their own headaches 😅

@afontcu afontcu merged commit dbcf740 into master Nov 14, 2020
@afontcu afontcu deleted the bring-types branch November 14, 2020 22:53
@github-actions
Copy link

🎉 This PR is included in version 5.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants