Created
July 6, 2018 15:01
-
-
Save zsoumya/0bfd6d75786a504e6a4d5759ccd0c1e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log((fileName => `The current filename is ${fileName}`)(__filename)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am evaluating WebStorm 2018.1.5 for Node development with TypeScript. When I type the above TypeScript code in WebStorm I do not get code completion support for __filename. In fact I get no code completion for @types/node package. Why so?