Closed pgrm closed 8 years ago
@pgrm Note that progress is being made on creating a solution that works out-of-the-box. See e.g. https://github.com/Microsoft/TypeScript/issues/2338, https://github.com/Microsoft/TypeScript/issues/2839. In the mean time, it may be interesting to look at https://github.com/SitePen/dts-generator, as it doesn't use regexes for creating the bundles and is more recently updated.
The typescript issues are, where I've found this repository in the first place, for now I've just put a new line before the end of the comment and that works, but I'll also try dts-generator, thx
in the current version of express.d.ts is the following code block:
because the end of a comment is detected with the following regex:
/^[ \t]*\*+\/
it means that dts-bundle never detects the end of the comment and thinks, the whole files is commented out.