File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -729,6 +729,10 @@ namespace ts {
729
729
* List of supported extensions in order of file resolution precedence.
730
730
*/
731
731
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
+ }
732
736
733
737
export function isSupportedSourceFileName ( fileName : string , compilerOptions ?: CompilerOptions ) {
734
738
if ( ! fileName ) { return false ; }
Original file line number Diff line number Diff line change @@ -1910,10 +1910,6 @@ namespace ts {
1910
1910
return false ;
1911
1911
}
1912
1912
1913
- export function getSupportedExtensions ( options ?: CompilerOptions ) : string [ ] {
1914
- return options && options . jsExtensions ? supportedTypeScriptExtensions . concat ( options . jsExtensions ) : su
548D
pportedTypeScriptExtensions ;
1915
- }
1916
-
1917
1913
export function getAllAccessorDeclarations ( declarations : NodeArray < Declaration > , accessor : AccessorDeclaration ) {
1918
1914
let firstAccessor : AccessorDeclaration ;
1919
1915
let secondAccessor : AccessorDeclaration ;
You can’t perform that action at this time.
0 commit comments