Skip to content

isolated-declarations: Keep comments on type fields #8665

@Exeteres

Description

@Exeteres

The issue is similar to #5928.

While comments for interface fields work fine, they cut out for type fields.

This code:

export type MyType = {
  /**
   * My comment.
   */
  field: string
}

Transforms to:

export declare type MyType = { field: string };

Metadata

Metadata

Assignees

Labels

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions