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.
dts
and experimentalDts
experimentalDts
should generate module augmentation like dts
do. This line should be generated on .d.ts
file
declare module "axios" {
interface Axios {
dummy(): string;
}
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too