-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
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
No intellisense for required builtin node modules after installing @types/node #23780
Comments
This works if you write: import fs = require('fs') I don't know if using plain require was ever supported |
See also #23711 |
@Andy-MS
b.ts
I want use namespace as global(merger all file in one file). not single module. but if use "import fs = require('fs')" in "a.ts", "b.ts" can't use G. if use "const fs = require("fs")", it's work. "const fs = require("fs")" no intellisense in vscode, webstorm have intellisense. it's confuse me. |
A file can not be both a global script and a module. it is either one or the other.. const fs: typeof import ("fs") = require("fs"); |
@weswigham do we have an issue for higher-order |
I don't think one's actually been opened yet, no. |
We should then. we should collect such use cases. |
@mhegazy |
@WangPengJu import types are only in the nightly right now, as we've yet to cut a release since adding them. |
ok. i can wait @weswigham |
2.9.0-dev.20180501 |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
From @shepelevstas on April 26, 2018 5:33
Version 1.22.2
Commit 3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9
Date 2018-04-12T17:28:16.777Z
Shell 1.7.12
Renderer 58.0.3029.110
Node 7.9.0
Architecture ia32
To reproduce:
CMD
//tsconfig.json
//src/index.ts
Or maybe I'm doing it wrong?
Copied from original issue: microsoft/vscode#48731
The text was updated successfully, but these errors were encountered: