Skip to content

Commit dadc1a8

Browse files
committed
Make resolvedUsingTsExtension optional
1 parent f9414aa commit dadc1a8

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Diff for: src/compiler/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7224,7 +7224,7 @@ export interface ResolvedModule {
72247224
* True if the original module reference used a .ts extension to refer directly to a .ts file,
72257225
* which should produce an error during checking if emit is enabled.
72267226
*/
7227-
resolvedUsingTsExtension: boolean;
7227+
resolvedUsingTsExtension?: boolean;
72287228
}
72297229

72307230
/**

Diff for: src/testRunner/unittests/moduleResolution.ts

-5
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
169169
resolvedFileName: "/sub/node_modules/a/index.ts",
170170
isExternalLibraryImport: true,
171171
extension: ts.Extension.Ts,
172-
resolvedUsingTsExtension: false,
173172
},
174173
failedLookupLocations: [],
175174
affectingLocations: [],
@@ -185,7 +184,6 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
185184
resolvedFileName: "/sub/directory/node_modules/b/index.ts",
186185
isExternalLibraryImport: true,
187186
extension: ts.Extension.Ts,
188-
resolvedUsingTsExtension: false,
189187
},
190188
failedLookupLocations: [],
191189
affectingLocations: [],
@@ -203,7 +201,6 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
203201
resolvedFileName: "/bar/node_modules/c/index.ts",
204202
isExternalLibraryImport: true,
205203
extension: ts.Extension.Ts,
206-
resolvedUsingTsExtension: false,
207204
},
208205
failedLookupLocations: [],
209206
affectingLocations: [],
@@ -220,7 +217,6 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
220217
resolvedFileName: "/foo/index.ts",
221218
isExternalLibraryImport: true,
222219
extension: ts.Extension.Ts,
223-
resolvedUsingTsExtension: false,
224220
},
225221
failedLookupLocations: [],
226222
affectingLocations: [],
@@ -236,7 +232,6 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
236232
resolvedFileName: "d:/bar/node_modules/e/index.ts",
237233
isExternalLibraryImport: true,
238234
extension: ts.Extension.Ts,
239-
resolvedUsingTsExtension: false,
240235
},
241236
failedLookupLocations: [],
242237
affectingLocations: [],

0 commit comments

Comments
 (0)