make internal

This commit is contained in:
Arthur Ozga 2017-05-03 14:12:24 -07:00
parent 0b68b934ef
commit 7282b9f0ce
2 changed files with 2 additions and 0 deletions

View File

@ -1752,6 +1752,7 @@ namespace ts {
return path.length > extension.length && endsWith(path, extension);
}
/* @internal */
export function fileExtensionIsOneOf(path: string, extensions: string[]): boolean {
for (const extension of extensions) {
if (fileExtensionIs(path, extension)) {

View File

@ -976,6 +976,7 @@ namespace ts {
return moduleName;
}
/* @internal */
export function getPackageNameFromAtTypesDirectory(mangledName: string): string {
const withoutAtTypePrefix = removePrefix(mangledName, "@types/");
if (withoutAtTypePrefix !== mangledName) {