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

No definition and export TSPrivateIdentifier declaration from @typescript-eslint/ast-spec #3804

Closed
3 tasks
gwsbhqt opened this issue Aug 28, 2021 · 1 comment
Closed
3 tasks
Labels
duplicate This issue or pull request already exists package: parser Issues related to @typescript-eslint/parser

Comments

@gwsbhqt
Copy link

gwsbhqt commented Aug 28, 2021

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read the FAQ and my problem is not listed.

Question

Recently I am using the @typescript-eslint suite to build custom rules, but I found that some definitions and exports seem to be missing. Is it because I have overlooked something?

For example:

class A {
    #A
}

I use @typescript-eslint/parser in https://astexplorer.net/ to view the syntax tree, and found a type node of TSPrivateIdentifier.

And after printing the node information, it is found that this type also exists.

But the strange thing is that I did not find any related definitions and exports.

image

image

image

Versions

package version
@typescript-eslint/parser 4.29.3
TypeScript 4.4.2
ESLint 7.32.0
node 16.7.0
@gwsbhqt gwsbhqt added package: parser Issues related to @typescript-eslint/parser triage Waiting for maintainers to take a look labels Aug 28, 2021
@bradzacher
Copy link
Member

See #3430

@bradzacher bradzacher added duplicate This issue or pull request already exists and removed triage Waiting for maintainers to take a look labels Aug 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists package: parser Issues related to @typescript-eslint/parser
Projects
None yet
Development

No branches or pull requests

2 participants