triple-slash reference added only if another triple-slash reference exists #57482
Labels
Fix Available
A PR has been opened for this issue
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
π Search Terms
triple-slash reference added
π Version & Regression Information
β― Playground Link
Workbench
π» Code
π Actual behavior
/// <reference types="extra" />
is added toapp.d.ts
only if another reference directive to extra already exists (in this example one fromnode_modules
)π Expected behavior
/// <reference types="extra" />
is always added sinceextra
is required forapp.d.ts
to be validAdditional information about the issue
This was discovered while trying to understand reference directives in the context of isolated declarations.
The text was updated successfully, but these errors were encountered: