IntelliJ - I can't autocomplete file path in TypeScript

I am importing HTML file in TypeScript. It gets loaded as a string by Webpack HTML Loader and is also recognized by TypeScript.

Is there a way to autocomplete a file path in IntelliJ? Although *.html is registered as a typescript module, IntelliJ doesn't autocomplete. 

You can see from the screenshot typescript recognizes no error as it recognizes *.html as a typescript module.

 

 

0
1 comment

Path completion includes .html, etc. files for side-effect only imports (https://youtrack.jetbrains.com/issue/WEB-26481), but for 'normal' import statements only TypeScript files are available; if you miss completion for resources, please vote for https://youtrack.jetbrains.com/issue/WEB-32138

0

Please sign in to leave a comment.