mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Addressed PR comments
This commit is contained in:
@@ -2677,7 +2677,7 @@ namespace ts {
|
||||
|
||||
const extensions = [
|
||||
...needJsExtensions ? allSupportedExtensions : supportedTypeScriptExtensions,
|
||||
...extraFileExtensions.filter(x => x.scriptKind === ScriptKind.Deferred || needJsExtensions && isJavaScriptLike(x.scriptKind)).map(x => x.extension)
|
||||
...mapDefined(extraFileExtensions, x => x.scriptKind === ScriptKind.Deferred || needJsExtensions && isJavaScriptLike(x.scriptKind) ? x.extension : undefined)
|
||||
];
|
||||
|
||||
return deduplicate(extensions, equateStringsCaseSensitive, compareStringsCaseSensitive);
|
||||
|
||||
@@ -4066,6 +4066,8 @@ namespace ts {
|
||||
Prototype,
|
||||
}
|
||||
|
||||
export type JsFileExtensionInfo = FileExtensionInfo;
|
||||
|
||||
export interface FileExtensionInfo {
|
||||
extension: string;
|
||||
isMixedContent: boolean;
|
||||
|
||||
@@ -2266,6 +2266,7 @@ declare namespace ts {
|
||||
AlwaysStrict = 64,
|
||||
PriorityImpliesCombination = 28
|
||||
}
|
||||
type JsFileExtensionInfo = FileExtensionInfo;
|
||||
interface FileExtensionInfo {
|
||||
extension: string;
|
||||
isMixedContent: boolean;
|
||||
|
||||
@@ -2266,6 +2266,7 @@ declare namespace ts {
|
||||
AlwaysStrict = 64,
|
||||
PriorityImpliesCombination = 28
|
||||
}
|
||||
type JsFileExtensionInfo = FileExtensionInfo;
|
||||
interface FileExtensionInfo {
|
||||
extension: string;
|
||||
isMixedContent: boolean;
|
||||
|
||||
Reference in New Issue
Block a user