Skip to content

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

Description

@duderdice

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?

Activity

  1. ajliu commented on Aug 4, 2016

    @ajliu

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

  2. sky-coding commented on Aug 9, 2016

    @sky-coding

    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?

  3. sky-coding commented on Aug 9, 2016

    @sky-coding

    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.

  4. ankeshdave commented on Aug 11, 2016

    @ankeshdave

    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

  5. katallaxie commented on Aug 30, 2016

    @katallaxie
    Contributor

    Does ee0c85e resolves your issue?

  6. maxisam commented on Sep 12, 2016

    @maxisam
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions