-
Notifications
You must be signed in to change notification settings - Fork 12k
Subsequent variable declarations error on typings.d.ts #5499
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
Comments
I can verify this also happens in VS Code. This happens because the editor tsconfig does include node typings, so when the editor reads
The approaches that you're trying in #5500 aren't going to work though... this probably needs a more sophisticated solution. |
@filipesilva which package do you use on VS Code ? That way I can test if the proposed solution works on it. Also is there a specific reason you feel #5500 isn't working or is not the correct implementation ? It seems to be working on my editor and passing the test for #5193 along with the others so far. |
Edit: |
No package needed, just a vanilla install of VS Code 😄 |
Yeah ... Updated comment when I realized "plugin" meant package ... Overall I realized I was having same error as you on Atom when I tested the tested the fix on it .. I was being too reliant on the CLI tests. I updated the PR so it doesn't use |
You know what, I think that's the right solution. I hadn't thought about how declaration merging would kick in and make this whole work. Great job fixing this! |
No problem ! xD .. Thanks for the VS Code screenshot btw, I hadn't realize the first solution that actually passed all tests wasn't working even on my own text editor until you showed me that ~ lol |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.0.0-rc.2
node: 6.9.5
os: darwin x64
@angular/common: 2.4.10
@angular/compiler: 2.4.10
@angular/core: 2.4.10
@angular/forms: 2.4.10
@angular/http: 2.4.10
@angular/platform-browser: 2.4.10
@angular/platform-browser-dynamic: 2.4.10
@angular/router: 3.4.10
@angular/cli: 1.0.0-rc.2
@angular/compiler-cli: 2.4.10
Repro steps.
ng new test-typings
cd test-typings/
src/typings.d.ts
usingAtom
withTypeStrong/atom-typescript
packageSubsequent variable declarations must have the same type.
on line2:13
The log given by the failure.
Desired functionality.
I would like to not see errors when using
typings.d.ts
Mention any other details that might be useful.
Using
Atom Version 1.15.0
andTypeStrong/atom-typescript 10.1.14
The text was updated successfully, but these errors were encountered: