I am using Visual Studio to write a ASP.NET MVC web application. I am also quite new to TypeScript, but I know C# and JavaScript so I don't have issues with the syntax.
However I am completely confused with importing/referencing .js files, namely for the two.js library:
One of the files (two.module.js) seems to be annotated with JSDoc and ends with:
export default (this || window).Two;
so I am presuming it should be importable as an ES6 module, but how does this work with TypeScript?
I tried using this:
import { Two } from "../twojs/twojs.module.js"
but I get an error (cannot find module "../twojs/twojs.module.js", presumably because it's not a .ts file.