javascript - In VS, is there a way to ignore errors on some typescript files but still compile them in? -


i'm writing large application several 3rd party libraries. right now, using post-build script concatenate of .js files together, along output of combined typescript files. works fine, makes source mappings off debugging.

what i'd accomplish converting of 3rd party .js libraries typescript (and converting, mean renaming them .js .ts since typescript superset). here, can use typescript compiler output of combined typescript files accurate source maps debugging in typescript still work. however, issue i'm running 3rd party libraries have various errors, cannot build work.

is there way in visual studio have existing typescript files compiled while having these third party libraries compiled ignoring errors , have result output 1 single javascript file?

typescript able forgive whole host of errors , still provide compiled javascript, in cases error prevent - i.e. code no longer make sense compiler because cannot determine enough information.

the solution splatter lots of : any type annotations suppress errors.

the real danger approach trying keep edited versions of of libraries updated change.

here alternative...

combine of third party libraries single file, combine of typescript files single file (so source maps work).

this allow debug , crush 2 files later if http request worries you.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -