PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

syntax error in custom.typings.d.ts

Open duderdice opened this issue 10 years ago • 7 comments

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?

duderdice avatar Aug 02 '16 20:08 duderdice

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

ajliu avatar Aug 04 '16 19:08 ajliu

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?

sky-coding avatar Aug 09 '16 18:08 sky-coding

https://youtrack.jetbrains.com/issue/WEB-22697

ajliu avatar Aug 09 '16 18:08 ajliu

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 https://github.com/AngularClass/angular2-webpack-starter/commit/759e9ee83466b822c79356475aba931dac80a3ee to seed new projects for now. Hopefully these problems won't deter new adopters looking for a "turn-key" seed.

sky-coding avatar Aug 09 '16 18:08 sky-coding

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

ankeshdave avatar Aug 11 '16 10:08 ankeshdave

Does ee0c85e1483b7f77ad728ab8c177d4370eb07250 resolves your issue?

katallaxie avatar Aug 30 '16 08:08 katallaxie

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

maxisam avatar Sep 12 '16 20:09 maxisam