Skip to content

Auto type reference directives do not lowercase the typing name #26948

Closed
@sheetalkamat

Description

@sheetalkamat

As part of #9824 all type reference directives are lower cased so type="somePackage" results in looking for type reference of somepackage instead.

When including the auto type directives, we include list of typings from user or get the package names from typeRoots (where if config doesn't provide it, it will be node_modules/@types)
The package names read here are not lower cased. Thus this leaves a discrepancy between these type sources included and typereference directives included resulting in confusion for packages in these auto type directives to reference other packages at same level.

Eg.
If auto type references are: "UpperCasePackage", "somepackage", and if somepackage needs to reference this UpperCasePackage it has no way to do so correctly.

Found while working on #26944

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions