Skip to content

stripInternal should work on single-line commentsΒ #46515

Open
@parzhitsky

Description

Bug Report

πŸ”Ž Search Terms

stripInternal

πŸ•— Version & Regression Information

  • This is a crash
  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about stripInternal

⏯ Playground Link

Playground link with relevant code

πŸ’» Code

/module.ts

/** @internal */
export type Thing = string;

// this is not @internal (using at character)
export type Thing2 = number;

// this is also not internal (not using at character)
export type Thing3 = boolean;

πŸ™ Actual behavior

/module.d.ts

export declare type Thing3 = boolean;

πŸ™‚ Expected behavior

/module.d.ts

export declare type Thing2 = number;
export declare type Thing3 = boolean;

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Experimentation NeededSomeone needs to try this out to see what happensHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions