lib.d.tsto see what I mean
@basarat dts-generator worked fairly well. The only weird part was how to handle
tsc will fail if a reference path does not exist. So I didn't want them emitted in the bundled d.ts file. The workaround:
Use a references.ts file.
Don't append any references in the other .ts files.
tsc will still work as long as the references file is included.
dts-generator has an exclude property.