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

bug(semantic): TSImportEqualsDeclaration does not create a symbol #4091

Closed
DonIsaac opened this issue Jul 7, 2024 · 0 comments · Fixed by #4100
Closed

bug(semantic): TSImportEqualsDeclaration does not create a symbol #4091

DonIsaac opened this issue Jul 7, 2024 · 0 comments · Fixed by #4100
Assignees
Labels
A-semantic Area - Semantic C-bug Category - Bug

Comments

@DonIsaac
Copy link
Collaborator

DonIsaac commented Jul 7, 2024

import foo = require('./foo') // `foo` is not added to the symbol table
const bar = require('./bar')  // but `bar` is

Playground Link

This causes a false positive in jsx-no-undef (example)

import Foo = require('./bar')

const Component = () => <Foo />
@DonIsaac DonIsaac added C-bug Category - Bug A-semantic Area - Semantic labels Jul 7, 2024
@DonIsaac DonIsaac self-assigned this Jul 7, 2024
@Dunqing Dunqing closed this as completed in 0f02608 Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-semantic Area - Semantic C-bug Category - Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant