File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -729,6 +729,10 @@ namespace ts {
729729 * List of supported extensions in order of file resolution precedence.
730730 */
731731 export const supportedTypeScriptExtensions = [ "ts" , "tsx" , "d.ts" ] ;
732+
733+ export function getSupportedExtensions ( options ?: CompilerOptions ) : string [ ] {
734+ return options && options . jsExtensions ? supportedTypeScriptExtensions . concat ( options . jsExtensions ) : supportedTypeScriptExtensions ;
735+ }
732736
733737 export function isSupportedSourceFileName ( fileName : string , compilerOptions ?: CompilerOptions ) {
734738 if ( ! fileName ) { return false ; }
Original file line number Diff line number Diff line change @@ -1910,10 +1910,6 @@ namespace ts {
19101910 return false ;
19111911 }
19121912
1913- export function getSupportedExtensions ( options ?: CompilerOptions ) : string [ ] {
1914- return options && options . jsExtensions ? supportedTypeScriptExtensions . concat ( options . jsExtensions ) : supportedTypeScriptExtensions ;
1915- }
1916-
19171913 export function getAllAccessorDeclarations ( declarations : NodeArray < Declaration > , accessor : AccessorDeclaration ) {
19181914 let firstAccessor : AccessorDeclaration ;
19191915 let secondAccessor : AccessorDeclaration ;
You can’t perform that action at this time.
0 commit comments