()
| 121945 | ending: getEnding(), |
| 121946 | }; |
| 121947 | function getEnding() { |
| 121948 | switch (importModuleSpecifierEnding) { |
| 121949 | case "minimal": return 0 /* Ending.Minimal */; |
| 121950 | case "index": return 1 /* Ending.Index */; |
| 121951 | case "js": return 2 /* Ending.JsExtension */; |
| 121952 | default: return usesJsExtensionOnImports(importingSourceFile) || isFormatRequiringExtensions(compilerOptions, importingSourceFile.path, host) ? 2 /* Ending.JsExtension */ |
| 121953 | : ts.getEmitModuleResolutionKind(compilerOptions) !== ts.ModuleResolutionKind.NodeJs ? 1 /* Ending.Index */ : 0 /* Ending.Minimal */; |
| 121954 | } |
| 121955 | } |
| 121956 | } |
| 121957 | function getPreferencesForUpdate(compilerOptions, oldImportSpecifier, importingSourceFileName, host) { |
| 121958 | return { |
no test coverage detected