TS2339: Property does not exist on type

后端 未结 1 855
野趣味
野趣味 2020-12-20 01:31

I\'m converting a js file to ts in WebStorm 2016.2.2.

I had the following snippet:

///

        
相关标签:
1条回答
  • 2020-12-20 02:02

    The problem is that any typescript file with top-level import or export becomes a module. See https://github.com/Microsoft/TypeScript/issues/1574

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