Skip to content

[api-extractor] Fix an issue with preservation of triple-slash references. #5131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 1, 2025

Conversation

iclanton
Copy link
Member

@iclanton iclanton commented Feb 25, 2025

Summary

There is an issue where references are not collected from fies that only contain reexports.

"Include triple-slash references marked with preserve=\"true\" from files that only contain re-exports. There was a behavior change in TypeScript 5.5, where only triple-slash references that are explicitly marked with preserve=\"true\" are emitted into declaration files. This change adds support for placing these references in files that only contain re-exports, like the API entrypoint file."

How it was tested

Added a repro and fixed it.

Impacted documentation

None.

@iclanton iclanton enabled auto-merge (squash) February 26, 2025 17:34
@iclanton iclanton moved this from Needs triage to In Progress in Bug Triage Feb 26, 2025
@iclanton iclanton merged commit 9a25abc into microsoft:main Mar 1, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Closed in Bug Triage Mar 1, 2025
@iclanton iclanton deleted the reference-in-index branch March 1, 2025 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants