TypeScript: Signature for '???' duplicated

code:

///<reference path="phonegap.d.ts" />

var x = 1;

      

Now if you "compile" the script.ts file in VS I get the following error

C:/Program Files (x86)/Microsoft SDKs/TypeScript/lib.d.ts(4551,4): 
Signature for 'clearWatch' is duplicated

      

In my VS 2012 I also have the following extension installed (which may be related to the problem, but not sure)

  • TypeScript
  • Web Essentials
+3


source to share


1 answer


This is due to both lib.d.ts and phonegap.d.ts . There Geolocation

is a method in the interface clearWatch

.



I suggest you comment out this method from phonegap.d.ts

+3


source







All Articles