Open axmad386 opened 10 months ago
Module augmentation is usefull for declaration merging https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation When using tsup to generate .d.ts using experimentalDts, it's ignore module augmentation. Change to dts will resolve this problem.
.d.ts
experimentalDts
dts
experimentalDts should generate module augmentation like dts do. This line should be generated on .d.ts file
declare module "axios" { interface Axios { dummy(): string; } }
Problem
Module augmentation is usefull for declaration merging https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation When using tsup to generate
.d.ts
usingexperimentalDts
, it's ignore module augmentation. Change todts
will resolve this problem.Version Info
Reproduce
dts
andexperimentalDts
Expectation
experimentalDts
should generate module augmentation likedts
do. This line should be generated on.d.ts
fileUpvote & Fund