Help WantedSuggestion
倉庫指標
- Star
- (48,455 star)
- PR 合併指標
- (平均合併 6天 17小時) (30 天內合併 9 個 PR)
描述
TS: 2.0.0
// code.ts
/**
* Some foo
*/
export const foo = {
/**
* Some boo
*/
boo = 0
}
expect:
// code.d.ts
/**
* Some foo
*/
export declare foo: {
/**
* Some boo
*/
boo: number;
}
actual:
// code.d.ts
/**
* Some foo
*/
export declare foo: {
boo: number;
}
By the way, is there a way to separately control whether comment should be kept in *.d.ts and *.js?
Currently when tsconfig.json/compilerOptions/removeComments = true, comments are removed from both of them.
Would it be nice to keep the comments in *.d.ts but not *.js?