$ tsc --version
Version 2.0.0
Code
see https://github.com/proxy/gist.github.com/dherges/701e5965dd5708529410ee47e4b0c798
/// <reference path="./halfred.d.ts" />
import halfred = require('halfred');
let resource = halfred.parse({foo: "bar"});
console.log(resource);
Expected behavior:
Compilation should be ok, runtime should be ok.
Actual behavior:
Compilation throws error "TS2307: Cannot find module ". Then running the generated .js (on node) works as expected. Module is resolved (through require()) and produces expected output.
Custom typings are in place. Visual Studio Code actually recognizes the typings. However, compilation fails.
Usage error? Is this a mis-understanding or a tsc bug?
Code
see https://github.com/proxy/gist.github.com/dherges/701e5965dd5708529410ee47e4b0c798
Expected behavior:
Compilation should be ok, runtime should be ok.
Actual behavior:
Compilation throws error "TS2307: Cannot find module ". Then running the generated .js (on node) works as expected. Module is resolved (through
require()) and produces expected output.Custom typings are in place. Visual Studio Code actually recognizes the typings. However, compilation fails.
Usage error? Is this a mis-understanding or a
tscbug?