visual studio 2013 - How to resolve Errors after adding jquery.d.ts to project -


in visual studio, create default typescript site.

i use nuget add jquery.d.ts.

i compile app.

the error window shows me 101 errors in jquery.d.ts file such as:

error   341 ',' expected. 

how resolve these errors?

have incorrectly imported file, or there setting need set?

the actual error shown in ui says:

a parameterized initializer allowed in function or constructor implementation. 

on line:

replaceall(target: jquery|any[]|element|string): jquery; 

you're using old version of typescript compiler. union types (that jquery|any[]|element|string) available since typescript 1.4

try updating typescript visual studio.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -