Wrong import attribute typed as any, but should be typed as string #61469
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
🔎 Search Terms
According to the documentation at MDN for Import attributes, the attribute value ie. dataN is of type
string
.In my VSCode setup using Typescript 5.8.2, this is typed as
any
in my .ts file:My tsconfig is as follows:
🕗 Version & Regression Information
⏯ Playground Link
No response
💻 Code
// Your code here
🙁 Actual behavior
Import attribute is typed as any instead of string.
🙂 Expected behavior
Import attribute should be typed as string.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: