We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Version: 21.0.1
sourceText:
declare module '@x/y' {};
judge:
const modules = sourceFile.getModules(); modules.forEach(m => { if (m.getName() === "'@x/y'") { console.log('enter'); } });
so, Why ? "'@x/y'" instead of '@x/y'?
And:
const t = sourceFile.getModule('@x/y'); // => undefined ? const t = sourceFile.getModule("'@x/y'"); // => it works...
Expected behavior '@x/y'
The text was updated successfully, but these errors were encountered:
I'm confused...
Sorry, something went wrong.
These two module names are distinct:
declare module "example" {} declare module example {}
That said, perhaps it should be normalizing single quotes to double quotes.
No branches or pull requests
Describe the bug
Version: 21.0.1
sourceText:
judge:
so, Why ? "'@x/y'" instead of '@x/y'?
And:
Expected behavior
'@x/y'
The text was updated successfully, but these errors were encountered: