TypeScript: Signature for '???' duplicated

  • Create WinJS Application for Windows 8
  • Add Windows 8 javascript library to project
  • Add ddts phonegap typescript definition library from https://github.com/borisyankov/DefinitelyTyped
  • Add script.ts file to project
  • enter

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
windows-8 cordova winjs typescript


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 to share







All Articles
Loading...
X
Show
Funny
Dev
Pics