Skip to content

Instantly share code, notes, and snippets.

@zsoumya
Created July 6, 2018 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsoumya/0bfd6d75786a504e6a4d5759ccd0c1e4 to your computer and use it in GitHub Desktop.
Save zsoumya/0bfd6d75786a504e6a4d5759ccd0c1e4 to your computer and use it in GitHub Desktop.
console.log((fileName => `The current filename is ${fileName}`)(__filename));
@zsoumya
Copy link
Author

zsoumya commented Jul 6, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment