Typescript guide gives “Duplicate function implementation” warning

后端 未结 6 1703
小蘑菇
小蘑菇 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:42

    According to this article, add this simple line in the top of your Typescript file export { };

    [index.ts] export { };

    declare const signalR: any;
    declare const moment: any;
    

提交回复
热议问题