Typescript 1.8 - Es2015 Imports In Js Files
I would like to start using Typescript on an Existing Babel project. My goal is to be able to add typescript to the build process with as less modifications as possible on the exis
Solution 1:
The error you're getting for the default export
is a bug in the TypeScript compiler. I've sent out a fix since you filed this issue.
If you want to specify the root module in JavaScript files (which is non-standard and specific to certain module loaders like CommonJS), the way to do this is the same way you'd do this in JavaScript:
module.exports = yourRootExportObjectHere;
The compiler should recognize and respect these as equivalent to export =
declarations.
Post a Comment for "Typescript 1.8 - Es2015 Imports In Js Files"