Movatterモバイル変換


[0]ホーム

URL:


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(type-utils): treat intrinsic types as if they are from lib and never match error types#6869

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

RebeccaStevens
Copy link
Contributor

@RebeccaStevensRebeccaStevens commentedApr 8, 2023
edited by JoshuaKGoldberg
Loading

PR Checklist

Overview

Adds explicit logic for intrinsic types and error types.

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@RebeccaStevens!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlify
Copy link

netlifybot commentedApr 8, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commite04ca7b
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/64a78d16ccbf7b0008ee8313
😎 Deploy Previewhttps://deploy-preview-6869--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify site configuration.

@RebeccaStevens
Copy link
ContributorAuthor

@marekdedic

@nx-cloud
Copy link

nx-cloudbot commentedApr 8, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commite04ca7b. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 31 targets

Sent with 💌 fromNxCloud.

@marekdedic
Copy link
Contributor

Hmm, good catch that native types aren't covered... Treating them as being from a lib is a bit of a simplification, but I think it's OK.

Not a maintainer, but could you please add a test?

@codecov
Copy link

codecovbot commentedApr 8, 2023
edited
Loading

Codecov Report

Merging#6869 (86372df) intov6 (e6235bf) willdecrease coverage by0.25%.
The diff coverage is60.00%.

❗ Current head86372df differs from pull request most recent head0990cf6. Consider uploading reports for the commit0990cf6 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@##               v6    #6869      +/-   ##==========================================- Coverage   87.70%   87.46%   -0.25%==========================================  Files         372      374       +2       Lines       12813    12887      +74       Branches     3795     3812      +17     ==========================================+ Hits        11238    11271      +33- Misses       1199     1231      +32- Partials      376      385       +9
FlagCoverage Δ
unittest87.46% <60.00%> (-0.25%)⬇️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
packages/type-utils/src/TypeOrValueSpecifier.ts83.87% <60.00%> (-6.46%)⬇️

... and40 files with indirect coverage changes

@RebeccaStevensRebeccaStevens changed the titlefix(type-utils): treat native types as if they are from libfix(type-utils): treat intrinsic types as if they are from libApr 8, 2023
@bradzacherbradzacher added the bugSomething isn't working labelApr 10, 2023
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Yup seems reasonable so far, but I'll take a closer look once there's some test coverage. 👍

@JoshuaKGoldbergJoshuaKGoldberg added the awaiting responseIssues waiting for a reply from the OP or another party labelApr 16, 2023
@RebeccaStevensRebeccaStevensforce-pushed theissue/6867 branch 2 times, most recently from6815b8c tocae8223CompareJune 15, 2023 11:17
@RebeccaStevensRebeccaStevens changed the titlefix(type-utils): treat intrinsic types as if they are from libfix(type-utils): treat intrinsic types as if they are from lib and never match error typesJun 15, 2023
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Great, thanks@RebeccaStevens! 🚀

@JoshuaKGoldbergJoshuaKGoldberg added this to the6.0.0 milestoneJun 17, 2023
Copy link
Contributor

@marekdedicmarekdedic left a comment

Choose a reason for hiding this comment

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

I'd like to see one more test for error types, otherwise LGTM, thanks!

JoshuaKGoldberg reacted with thumbs up emoji
@JoshuaKGoldberg
Copy link
Member

@RebeccaStevens is this still something you have time to look into soon? No worries if not, I can touch things up myself tomorrow / this weekend in preparation for v6 (currently scheduled for Monday!).

marekdedic reacted with hooray emoji

@RebeccaStevens
Copy link
ContributorAuthor

I just rebase this PR off the latest v6 branch and updatedts-api-utils.
I think everything should be ready to go now.

Let me know if there is anything else that needs doing.

Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

💯 woop!

marekdedic reacted with hooray emoji
@JoshuaKGoldbergJoshuaKGoldberg merged commitecb57de intotypescript-eslint:v6Jul 7, 2023
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJul 15, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@marekdedicmarekdedicmarekdedic approved these changes

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

Assignees
No one assigned
Labels
awaiting responseIssues waiting for a reply from the OP or another partybugSomething isn't working
Projects
None yet
Milestone
6.0.0
Development

Successfully merging this pull request may close these issues.

4 participants
@RebeccaStevens@marekdedic@JoshuaKGoldberg@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp