Refactoring to fix build issues
This commit is contained in:
parent
0496bfe278
commit
68040879c9
2 changed files with 4 additions and 4 deletions
|
@ -729,6 +729,10 @@ namespace ts {
|
||||||
* List of supported extensions in order of file resolution precedence.
|
* List of supported extensions in order of file resolution precedence.
|
||||||
*/
|
*/
|
||||||
export const supportedTypeScriptExtensions = ["ts", "tsx", "d.ts"];
|
export const supportedTypeScriptExtensions = ["ts", "tsx", "d.ts"];
|
||||||
|
|
||||||
|
export function getSupportedExtensions(options?: CompilerOptions): string[] {
|
||||||
|
return options && options.jsExtensions ? supportedTypeScriptExtensions.concat(options.jsExtensions) : supportedTypeScriptExtensions;
|
||||||
|
}
|
||||||
|
|
||||||
export function isSupportedSourceFileName(fileName: string, compilerOptions?: CompilerOptions) {
|
export function isSupportedSourceFileName(fileName: string, compilerOptions?: CompilerOptions) {
|
||||||
if (!fileName) { return false; }
|
if (!fileName) { return false; }
|
||||||
|
|
|
@ -1855,10 +1855,6 @@ namespace ts {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getSupportedExtensions(options?: CompilerOptions): string[] {
|
|
||||||
return options && options.jsExtensions ? supportedTypeScriptExtensions.concat(options.jsExtensions) : supportedTypeScriptExtensions;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function getAllAccessorDeclarations(declarations: NodeArray<Declaration>, accessor: AccessorDeclaration) {
|
export function getAllAccessorDeclarations(declarations: NodeArray<Declaration>, accessor: AccessorDeclaration) {
|
||||||
let firstAccessor: AccessorDeclaration;
|
let firstAccessor: AccessorDeclaration;
|
||||||
let secondAccessor: AccessorDeclaration;
|
let secondAccessor: AccessorDeclaration;
|
||||||
|
|
Loading…
Reference in a new issue