We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b68b93 commit 7282b9fCopy full SHA for 7282b9f
src/compiler/core.ts
@@ -1752,6 +1752,7 @@ namespace ts {
1752
return path.length > extension.length && endsWith(path, extension);
1753
}
1754
1755
+ /* @internal */
1756
export function fileExtensionIsOneOf(path: string, extensions: string[]): boolean {
1757
for (const extension of extensions) {
1758
if (fileExtensionIs(path, extension)) {
src/compiler/moduleNameResolver.ts
@@ -976,6 +976,7 @@ namespace ts {
976
return moduleName;
977
978
979
980
export function getPackageNameFromAtTypesDirectory(mangledName: string): string {
981
const withoutAtTypePrefix = removePrefix(mangledName, "@types/");
982
if (withoutAtTypePrefix !== mangledName) {
0 commit comments