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

fix: handle const Type Parameters #519

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

RebeccaStevens
Copy link
Collaborator

@RebeccaStevens RebeccaStevens commented May 22, 2024

PR Checklist

Overview

Initial attempt at resolving the issue.
I've got no idea if this is the correct approach or not.
There might be some cases which this PR doesn't currently handle.

@RebeccaStevens RebeccaStevens force-pushed the issue-518-initial branch 3 times, most recently from 372beb6 to 0f27bef Compare May 23, 2024 02:33
@RebeccaStevens RebeccaStevens marked this pull request as draft May 23, 2024 02:34

interface Symbol {
readonly links?: {
readonly checkFlags: ModifierFlags;
Copy link
Owner

Choose a reason for hiding this comment

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

Yeah I can't find any other way to do this but don't love relying on TS internals 😬 ... hmm. Do you think you could file an issue on TypeScript @RebeccaStevens asking to make this or an equivalent public?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@RebeccaStevens
Copy link
Collaborator Author

RebeccaStevens commented May 25, 2024

@JoshuaKGoldberg I just cleaned up this PR a bunch and made it a bit more robust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug: symbolHasReadonlyDeclaration doesn't support const type parameters
2 participants