Skip to content

isolated-declarations: Keep code comments #5928

@long-woo

Description

@long-woo

Declare the following code:

export interface Order {
  id?: number;
  petId?: number;
  quantity?: number;
  shipDate?: string;
  /**
   * Order Status
   */
  status?: OrderStatus;
  complete?: boolean; 
}

The result is:

export interface Order {
  id?: number;
  petId?: number;
  quantity?: number;
  shipDate?: string;
- /**
-  * Order Status
-  */
  status?: OrderStatus;
  complete?: boolean;
}

I want to keep the original comments in the declaration code obtained using oxc.isolatedDeclaration. Are there plans to add a removeComments option in IsolatedDeclarationsOptions similar to the tsconfig?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory - Bug

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions