Casing is not preserved when compiling <reference path="...">
triple slash directives
#52110
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened for this issue
Help Wanted
You can do this
Milestone
Bug Report
π Search Terms
reference types
π Version & Regression Information
This is the behavior in every version I tried, and I reviewed the FAQ for entries about triple slash directives.
β― Playground Link
Unable to produce playground link, as this involves the use of several files.
GitHub repository: https://github.com/craxal/triple-slash-path
π» Code
module-one/PanelWindow.d.ts
module-two/Class.ts
π Actual behavior
The triple slash directive is compiled to something similar to the following (note the casing is not preserved, even if
forceConsistentCasingInFileNames
is set totrue
):// <reference types="module-one/customwindow" />
Because of this issue, I cannot compile on macOS. This is not an issue on Windows.
π Expected behavior
I expect the triple slash directive in module-two/Class.ts to be compiled to something similar to the following (note the casing ought to be preserved if
forceConsistentCasingInFileNames
is set totrue
):// <reference types="module-one/CustomWindow" />
The text was updated successfully, but these errors were encountered: