How To Use external plain JavaScript Libraries in TypeScript?

Technology CommunityCategory: TypeScriptHow To Use external plain JavaScript Libraries in TypeScript?
VietMX Staff asked 3 years ago
  1. Include the library source file before the compiled TypeScript file
  2. In your TypeScript file before using the library, add
declare var libGlobal: any;
  1. Use any library function just like normal .