8000 Refactoring to fix build issues · imskojs/TypeScript@fe63067 · GitHub
[go: up one dir, main page]

Skip to content

Commit fe63067

Browse files
committed
Refactoring to fix build issues
1 parent a571bcb commit fe63067

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/compiler/core.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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; }

src/compiler/utilities.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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) : su 548D pportedTypeScriptExtensions;
1915-
}
1916-
19171913
export function getAllAccessorDeclarations(declarations: NodeArray<Declaration>, accessor: AccessorDeclaration) {
19181914
let firstAccessor: AccessorDeclaration;
19191915
let secondAccessor: AccessorDeclaration;

0 commit comments

Comments
 (0)
0