docs/libs/typescript.js
function removeWildcardFilesWithLowerPriorityExtension(file, wildcardFiles, extensions, keyMapper) {
        var extensionPriority = ts.getExtensionPriority(file, extensions);
        var nextExtensionPriority = ts.getNextLowestExtensionPriority(extensionPriority);
        for (var i = nextExtensionPriority; i < extensions.length; i++) {
            var lowerPriorityExtension = extensions[i];
            var lowerPriorityPath = keyMapper(ts.changeExtension(file, lowerPriorityExtension));
            delete wildcardFiles[lowerPriorityPath];
        }
    }
function removeWildcardFilesWithLowerPriorityExtension(file, wildcardFiles, extensions, keyMapper) {
        var extensionPriority = ts.getExtensionPriority(file, extensions);
        var nextExtensionPriority = ts.getNextLowestExtensionPriority(extensionPriority);
        for (var i = nextExtensionPriority; i < extensions.length; i++) {
            var lowerPriorityExtension = extensions[i];
            var lowerPriorityPath = keyMapper(ts.changeExtension(file, lowerPriorityExtension));
            delete wildcardFiles[lowerPriorityPath];
        }
    }
function removeWildcardFilesWithLowerPriorityExtension ( file , wildcardFiles , extensions , keyMapper ) { var extensionPriority = ts . getExtensionPriority ( file , extensions ) ; var nextExtensionPriority = ts . getNextLowestExtensionPriority ( extensionPriority ) ; for ( var i = nextExtensionPriority ; i < extensions . length ; i ++ ) { var lowerPriorityExtension = extensions [ i ] ; var lowerPriorityPath = keyMapper ( ts . changeExtension ( file , lowerPriorityExtension ) ) ; delete wildcardFiles [ lowerPriorityPath ] ; } }
Removes files included via wildcard expansion with a lower extension priority that have
already been included.

@param file The path to the file.
@param extensionPriority The priority of the extension.
@param context The expansion context.
Removes files included via wildcard expansion with a lower extension priority that have already been included .