I emit TS to then use tsc to make d.ts files for my code. But this creates functions for DUs that don't exist in the emitted JS.
Compiled to TS emits
...
export function Foo_Bar() {
return new Foo<0>(0, []);
}
export function Foo_Baz() {
return new Foo<1>(1, []);
}
...
But those don't get emitted when compiling to JS.
I suggest making the emitted JS match the emitted TS.
For now, I can't use TS only because of some other errors in the emitted TS (yes, I could dig into those, but the emitted js works fine)
I would like to have d.ts for the public surface of my JS. When just creating d.ts files tsc can jump over the other errors.
I emit TS to then use tsc to make d.ts files for my code. But this creates functions for DUs that don't exist in the emitted JS.
Compiled to TS emits
But those don't get emitted when compiling to JS.
I suggest making the emitted JS match the emitted TS.
For now, I can't use TS only because of some other errors in the emitted TS (yes, I could dig into those, but the emitted js works fine)
I would like to have d.ts for the public surface of my JS. When just creating d.ts files tsc can jump over the other errors.