Skip to content

TypeScript 6 API Bug - isSourceFileDefaultLibrary false negative on program structure reuse #63228

@StyleShit

Description

@StyleShit

🔎 Search Terms

isSourceFileDefaultLibrary

🕗 Version & Regression Information

⏯ Playground Link

No response

💻 Code

https://github.com/StyleShit/repros/tree/main/ts-6-isSourceFileDefaultLibrary

🙁 Actual behavior

isSourceFileDefaultLibrary returns false for source files in the default library

🙂 Expected behavior

isSourceFileDefaultLibrary will return true for source files in the default library, as in previous versions

Additional information about the issue

I'm willing to send a PR to fix this

Metadata

Metadata

Assignees

Labels

Needs InvestigationThis issue needs a team member to investigate its status.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions