Flattening TypeScript typings or interfaces?

后端 未结 1 1999
孤城傲影
孤城傲影 2021-01-02 09:45

As a TypeScript developer, I have become too used to \"Duplicate identifier\" issues when working with .d.ts files.

Most recently, this occurred because

1条回答
  •  清酒与你
    2021-01-02 10:35

    There is no official tool to flatten .d.ts files or any other I'm aware of. There are many reported issues for your (or similar) problem:

    • typings from angular2 conflict with project typings
    • Type definition conflict with jQuery TSD
    • Conflict between Mocha and Jasmine typings.
    • Error on $ in angular-protractor.d.ts

    Angular team is working on the issue.

    As a workaround, I would simply comment out /// comments that cause your errors and wait for a bugfix.

    0 讨论(0)
提交回复
热议问题