Skip to content
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

syntax error in custom.typings.d.ts #828

Closed
duderdice opened this issue Aug 2, 2016 · 7 comments
Closed

syntax error in custom.typings.d.ts #828

duderdice opened this issue Aug 2, 2016 · 7 comments

Comments

@duderdice
Copy link

duderdice commented Aug 2, 2016

Currently the first non-comment line in custom.d.ts is as follows

declare module "*";

but that seems to give a syntax error on the semicolon with the message '{ expected', as the compiler expects a curly brace. Changing it to the following seems to fix it

declare module "*" {}

Is that a valid fix?

@ajliu
Copy link

ajliu commented Aug 4, 2016

IntelliJ has been complaining about this for me as well. I'd love to know what's the proper way of resolving this..

@sky-coding
Copy link

I have a related problem with declare module "*";, when included my WebStorm fails to provide TypeScript support for all other modules, and trying to jump any module results in jumping to this line. Is this line necessary?

@ajliu
Copy link

ajliu commented Aug 9, 2016

@sky-coding
Copy link

sky-coding commented Aug 9, 2016

Awesome, thanks.

I'm also getting Unresolved type on things like Promise and require. I feel like these recent changes aren't quite usable for us yet so we'll be using 759e9ee to seed new projects for now. Hopefully these problems won't deter new adopters looking for a "turn-key" seed.

@ankeshdave
Copy link

Did you try VS Code
I had the same problem, I changed tsdk used by VS Code to point to Typescript 2.0, ie in the node modules folder, you can do that per workspace no unresolved types in Vs Code now

@katallaxie
Copy link
Contributor

Does ee0c85e resolves your issue?

@maxisam
Copy link
Contributor

maxisam commented Sep 12, 2016

Using visual studio 2015 with typescript 2.02 beta, this problem still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants