Typescript guide gives “Duplicate function implementation” warning

后端 未结 6 1702
小蘑菇
小蘑菇 2020-12-30 20:44

I\'m getting started with TypeScript and at moment I\'m following the TypeScript in 5 minutes guide. I\'m receiving a strange warning in Visual Studio Code when I hover the

6条回答
  •  灰色年华
    2020-12-30 21:27

    Looks like this is a bug in Visual Studio Code. There are a few issues on GitHub about this, such as here and here. The comments on the issues imply that it was an issue, then was fixed, and has just become an issue again in v1.12.1.

    It looks as if the solution is to run tsc --init to initialize the tsconfig.json in the folder.

提交回复
热议问题