I am trying compile this typescript file:
import http = module(\"http\");
import express = module(\"express\");
With these parameters:
Typescript compiler (https://www.npmjs.org/package/typescript-compiler) commands.
I use --allowimportmodule
The syntax in 0.9.1
is now import mod = require('modname');
I was getting these errors with a .Net Core application in Visual Studio Professional 2019, I got the 16.4.4 update and applied that which in turn had a requirement to reboot the computer which of course closed and then re-opened the solution. After this, the various TS errors went away.