Open
Description
Reproduction link or steps
https://github.com/RTVision/invalid-dts-generation
follow readme
What is expected?
no type errors from generated dts.
typing output similar to tsc or one without errors
What is actually happening?
type errors when file is opened and cant use that dts to typecheck code that depends on that .d.ts file.
I do not expect the void 0 to be there
Any additional comments?
I do not think it is a problem with tsdown, but not sure if it is rolldown-dts or oxc issue. Starting here for now