-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
Configuring an ES6 project using .d.ts files #1068
Comments
The recommendation is to have the typings folder with the .d.ts files as a peer of the jsconfig.json. |
the question is I have the typings folder and jsconfig.json {
"compilerOptions": {
"target": "ES6",
"module": "commonjs",
"experimentalDecorators": true
}
} |
Did you try to put the typings folder in the same folder as the jsconfig.json. This is what I meant with 'peer' to jsconfig.json. |
my typings folder and jsconfig.json are in the project root dir |
So it is the same layout as in the sample layout. Does the sample https://github.com/Microsoft/vscode-samples work for you? If not what is the difference between your code and the sample? |
the sample project have the same problem |
I just test the samples project |
@builden cannot reproduce. git clone the samples and I'm getting Intellisense. |
isn't well formed ES6 code. Those two options you have
|
Tks, those two options work well but I have see many other open source use this style, I never find import * as React from 'react' |
For sure a pattern that established before ES6 was finalised. Use this as reference: http://www.2ality.com/2014/09/es6-modules-final.html |
get it, tks for you reply |
if i want use node.d.ts, i must add node.d.ts to files property, but files not support glob pattern, i have to add all of project files to this property
other question: just use require('path') can support IntelliSense, use import don't support
The text was updated successfully, but these errors were encountered: