microsoft/typescript-go

Comments preserved in declaration files

Closed this issue · 0 comments

Steps to reproduce

// Comment
export class DbObject {
    // Comment
    id: string = ""; // Comment
    // Comment
    method() { }
}

Playground Link

Behavior with typescript@5.8

Non jsdoc comments are removed from declaration files

Behavior with tsgo

Non jsdoc comments are preserved in declaration files