Skip to content

Commit

Permalink
Make resolvedUsingTsExtension optional
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbranch committed Dec 5, 2022
1 parent f9414aa commit dadc1a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/compiler/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7224,7 +7224,7 @@ export interface ResolvedModule {
* True if the original module reference used a .ts extension to refer directly to a .ts file,
* which should produce an error during checking if emit is enabled.
*/
resolvedUsingTsExtension: boolean;
resolvedUsingTsExtension?: boolean;
}

/**
Expand Down
5 changes: 0 additions & 5 deletions src/testRunner/unittests/moduleResolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
resolvedFileName: "/sub/node_modules/a/index.ts",
isExternalLibraryImport: true,
extension: ts.Extension.Ts,
resolvedUsingTsExtension: false,
},
failedLookupLocations: [],
affectingLocations: [],
Expand All @@ -185,7 +184,6 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
resolvedFileName: "/sub/directory/node_modules/b/index.ts",
isExternalLibraryImport: true,
extension: ts.Extension.Ts,
resolvedUsingTsExtension: false,
},
failedLookupLocations: [],
affectingLocations: [],
Expand All @@ -203,7 +201,6 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
resolvedFileName: "/bar/node_modules/c/index.ts",
isExternalLibraryImport: true,
extension: ts.Extension.Ts,
resolvedUsingTsExtension: false,
},
failedLookupLocations: [],
affectingLocations: [],
Expand All @@ -220,7 +217,6 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
resolvedFileName: "/foo/index.ts",
isExternalLibraryImport: true,
extension: ts.Extension.Ts,
resolvedUsingTsExtension: false,
},
failedLookupLocations: [],
affectingLocations: [],
Expand All @@ -236,7 +232,6 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
resolvedFileName: "d:/bar/node_modules/e/index.ts",
isExternalLibraryImport: true,
extension: ts.Extension.Ts,
resolvedUsingTsExtension: false,
},
failedLookupLocations: [],
affectingLocations: [],
Expand Down

0 comments on commit dadc1a8

Please sign in to comment.