@@ -122,7 +122,9 @@ export {};
122
122
//// [index.d.cts]
123
123
export { } ;
124
124
//// [other.d.ts]
125
- export declare const a : typeof import ( "package/cjs" ) ;
125
+ export declare const a : {
126
+ default: typeof import ( "package/cjs" ) ;
127
+ } ;
126
128
export declare const b : typeof import ( "package/mjs" ) ;
127
129
export declare const c : typeof import ( "package" ) ;
128
130
export declare const f : {
@@ -134,12 +136,11 @@ export declare const d: {
134
136
default: typeof import ( "inner/cjs" ) ;
135
137
cjsNonmain: true ;
136
138
} ;
137
- export declare const e : {
138
- default: typeof import ( "inner/mjs" ) ;
139
- esm: true ;
140
- } ;
139
+ export declare const e : typeof import ( "inner/mjs" ) ;
141
140
//// [other.d.mts]
142
- export declare const a : typeof import ( "package/cjs" ) ;
141
+ export declare const a : {
142
+ default: typeof import ( "package/cjs" ) ;
143
+ } ;
143
144
export declare const b : typeof import ( "package/mjs" ) ;
144
145
export declare const c : typeof import ( "package" ) ;
145
146
export declare const f : {
@@ -151,12 +152,11 @@ export declare const d: {
151
152
default: typeof import ( "inner/cjs" ) ;
152
153
cjsNonmain: true ;
153
154
} ;
154
- export declare const e : {
155
- default: typeof import ( "inner/mjs" ) ;
156
- esm: true ;
157
- } ;
155
+ export declare const e : typeof import ( "inner/mjs" ) ;
158
156
//// [other.d.cts]
159
- export declare const a : Promise < typeof import ( "package/cjs" ) > ;
157
+ export declare const a : Promise < {
158
+ default : typeof import ( "package/cjs" ) ;
159
+ } > ;
160
160
export declare const b : Promise < typeof import ( "package/mjs" ) > ;
161
161
export declare const c : Promise < typeof import ( "package" ) > ;
162
162
export declare const f : Promise < {
@@ -168,18 +168,15 @@ export declare const d: Promise<{
168
168
default : typeof import ( "inner/cjs" ) ;
169
169
cjsNonmain: true ;
170
170
} > ;
171
- export declare const e : Promise < {
172
- default : typeof import ( "inner/mjs" ) ;
173
- esm: true ;
174
- } > ;
171
+ export declare const e : Promise < typeof import ( "inner/mjs" ) > ;
175
172
176
173
177
174
//// [DtsFileErrors]
178
175
179
176
180
- tests / cases / conformance / node / other . d . cts ( 2 , 47 ) : error TS1471 : Module 'package/mjs' cannot be imported using this construct . The specifier only resolves to an ES module , which cannot be imported synchronously . Use dynamic import instead .
181
- tests / cases / conformance / node / other . d . cts ( 3 , 47 ) : error TS1471 : Module 'package' cannot be imported using this construct . The specifier only resolves to an ES module , which cannot be imported synchronously . Use dynamic import instead .
182
- tests / cases / conformance / node / other2 . d . cts ( 6 , 28 ) : error TS1471 : Module 'inner/mjs' cannot be imported using this construct . The specifier only resolves to an ES module , which cannot be imported synchronously . Use dynamic import instead .
177
+ tests / cases / conformance / node / other . d . cts ( 4 , 47 ) : error TS1471 : Module 'package/mjs' cannot be imported using this construct . The specifier only resolves to an ES module , which cannot be imported synchronously . Use dynamic import instead .
178
+ tests / cases / conformance / node / other . d . cts ( 5 , 47 ) : error TS1471 : Module 'package' cannot be imported using this construct . The specifier only resolves to an ES module , which cannot be imported synchronously . Use dynamic import instead .
179
+ tests / cases / conformance / node / other2 . d . cts ( 5 , 47 ) : error TS1471 : Module 'inner/mjs' cannot be imported using this construct . The specifier only resolves to an ES module , which cannot be imported synchronously . Use dynamic import instead .
183
180
184
181
185
182
= === tests / cases / conformance / node / index . d . ts ( 0 errors ) === =
@@ -192,7 +189,9 @@ tests/cases/conformance/node/other2.d.cts(6,28): error TS1471: Module 'inner/mjs
192
189
export { } ;
193
190
194
191
= === tests / cases / conformance / node / other . d . ts ( 0 errors ) === =
195
- export declare const a : typeof import ( "package/cjs" ) ;
192
+ export declare const a : {
193
+ default : typeof import ( "package/cjs" ) ;
194
+ } ;
196
195
export declare const b : typeof import ( "package/mjs" ) ;
197
196
export declare const c : typeof import ( "package" ) ;
198
197
export declare const f : {
@@ -205,13 +204,12 @@ tests/cases/conformance/node/other2.d.cts(6,28): error TS1471: Module 'inner/mjs
205
204
default : typeof import ( "inner/cjs" ) ;
206
205
cjsNonmain: true ;
207
206
} ;
208
- export declare const e : {
209
- default: typeof import ( "inner/mjs" ) ;
210
- esm: true ;
211
- } ;
207
+ export declare const e : typeof import ( "inner/mjs" ) ;
212
208
213
209
= === tests / cases / conformance / node / other . d . mts ( 0 errors ) === =
214
- export declare const a : typeof import ( "package/cjs" ) ;
210
+ export declare const a : {
211
+ default : typeof import ( "package/cjs" ) ;
212
+ } ;
215
213
export declare const b : typeof import ( "package/mjs" ) ;
216
214
export declare const c : typeof import ( "package" ) ;
217
215
export declare const f : {
@@ -224,13 +222,12 @@ tests/cases/conformance/node/other2.d.cts(6,28): error TS1471: Module 'inner/mjs
224
222
default : typeof import ( "inner/cjs" ) ;
225
223
cjsNonmain: true ;
226
224
} ;
227
- export declare const e : {
228
- default: typeof import ( "inner/mjs" ) ;
229
- esm: true ;
230
- } ;
225
+ export declare const e : typeof import ( "inner/mjs" ) ;
231
226
232
227
= === tests / cases / conformance / node / other . d . cts ( 2 errors ) === =
233
- export declare const a : Promise < typeof import ( "package/cjs" ) > ;
228
+ export declare const a : Promise < {
229
+ default : typeof import ( "package/cjs" ) ;
230
+ } > ;
234
231
export declare const b : Promise < typeof import ( "package/mjs" ) > ;
235
232
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
236
233
! ! ! error TS1471 : Module 'package/mjs' cannot be imported using this construct . The specifier only resolves to an ES module , which cannot be imported synchronously . Use dynamic import instead .
@@ -247,12 +244,9 @@ tests/cases/conformance/node/other2.d.cts(6,28): error TS1471: Module 'inner/mjs
247
244
default : typeof import ( "inner/cjs" ) ;
248
245
cjsNonmain : true ;
249
246
} > ;
250
- export declare const e : Promise < {
251
- default : typeof import ( "inner/mjs" ) ;
252
- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
247
+ export declare const e : Promise < typeof import ( "inner/mjs" ) > ;
248
+ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
253
249
! ! ! error TS1471 : Module 'inner/mjs' cannot be imported using this construct . The specifier only resolves to an ES module , which cannot be imported synchronously . Use dynamic import instead .
254
- esm : true ;
255
- } > ;
256
250
257
251
= === tests / cases / conformance / node / node_modules / inner / index . d . ts ( 0 errors ) === =
258
252
// cjs format file
0 commit comments