I have setup an ASP.net core MVC project with TS. I want to use TS without using any module system. Just "clean" compiled TS=>JS.
The problem I am facing, is that I can't reference a declaration file (.d.ts) in a .ts file, without using "import".
If I do use "import" code completion and type checking works, but because I have configured my project not to use any "module" system, compiler complains saying: "Cannot use imports, exports or module augmentations when '--module' is 'none'
I've already tried using triple slash directives Triple-Slash Directives and using @types, typeRoots and types in tsconfig.json files but no luck.
VS2017(same with VS Code) doesn't seem to be able resolve the referenced file.
I've set up a rudimentary project which demonstrates the problem https://github.com/gtrifidis/Asp.netCoreTypescriptDemo/tree/master/TypeScriptDemo
Any help/idea would be very much appreciated.