my code
export default class {
name: 'foo' | 'bar'
logName(name:typeof this.name) {
console.log(name)
}
}
generate dts
declare class export_default{
name: 'foo' | 'bar';
logName(name: typeof this$1.name): void;
}
export { export_default as default };
my versions
"devDependencies": {
"tsup": "^7.2.0"
},
"dependencies": {
"typescript": "^5.2.2"
}
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