You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/__snapshots__/tsc.test.ts.snap
+207-1Lines changed: 207 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,213 @@ declare let ___2: typeof _exports$1["__"];
132
132
declarelet__3: typeof_exports$1["\\""];
133
133
declarelet__4: typeof_exports$1["\\\\"];
134
134
//#endregion
135
-
export { age, _exports as bar, bar_d_exports as barNs, __json_default_export as foo, foo_d_exports as fooNs, invalid_d_exports as invalidNs, name };"
135
+
//#region tests/fixtures/import-json/nested.d.ts
136
+
declareletopenapi: string;
137
+
declarenamespaceinfo {
138
+
let title: string;
139
+
letversion: string;
140
+
letdescription: string;
141
+
namespacelicense {
142
+
let name: string;
143
+
leturl: string;
144
+
}
145
+
}
146
+
declarenamespacecomponents {
147
+
namespace schemas {
148
+
namespace HttpStatus {
149
+
export let type: string;
150
+
letdescription_1: string;
151
+
export { description_1 as description };
152
+
let_enum: number[];
153
+
export { _enum as enum };
154
+
}
155
+
namespaceVovkErrorResponse {
156
+
let type_1: string;
157
+
export { type_1 as type };
158
+
letdescription_2: string;
159
+
export { description_2 as description };
160
+
exportnamespaceproperties {
161
+
namespace cause {
162
+
let description_3: string;
163
+
export { description_3 as description };
164
+
}
165
+
namespacestatusCode {
166
+
let $ref: string;
167
+
}
168
+
namespacemessage {
169
+
let type_2: string;
170
+
export { type_2 as type };
171
+
letdescription_4: string;
172
+
export { description_4 as description };
173
+
}
174
+
namespaceisError {
175
+
let type_3: string;
176
+
export { type_3 as type };
177
+
let_const: boolean;
178
+
export { _const as const };
179
+
letdescription_5: string;
180
+
export { description_5 as description };
181
+
}
182
+
}
183
+
exportletrequired: string[];
184
+
exportletadditionalProperties: boolean;
185
+
}
186
+
}
187
+
}
188
+
declareletpaths: {
189
+
"/api/users/{id}": {
190
+
post: {
191
+
summary: string;
192
+
description: string;
193
+
"x-codeSamples": {
194
+
label: string;
195
+
lang: string;
196
+
source: string;
197
+
}[];
198
+
parameters: ({
199
+
name: string;
200
+
in: string;
201
+
required: boolean;
202
+
schema: {
203
+
description: string;
204
+
type: string;
205
+
enum: string[];
206
+
examples?:undefined;
207
+
format?:undefined;
208
+
pattern?:undefined;
209
+
};
210
+
} | {
211
+
name: string;
212
+
in: string;
213
+
required: boolean;
214
+
schema: {
215
+
description: string;
216
+
examples: string[];
217
+
type: string;
218
+
format: string;
219
+
pattern: string;
220
+
enum?:undefined;
221
+
};
222
+
})[];
223
+
responses: {
224
+
"200": {
225
+
description: string;
226
+
content: {
227
+
"application/json": {
228
+
schema: {
229
+
$schema: string;
230
+
description: string;
231
+
type: string;
232
+
properties: {
233
+
success: {
234
+
description: string;
235
+
type: string;
236
+
};
237
+
};
238
+
required: string[];
239
+
additionalProperties: boolean;
240
+
};
241
+
};
242
+
};
243
+
};
244
+
};
245
+
requestBody: {
246
+
description: string;
247
+
required: boolean;
248
+
content: {
249
+
"application/json": {
250
+
schema: {
251
+
$schema: string;
252
+
description: string;
253
+
type: string;
254
+
properties: {
255
+
email: {
256
+
description: string;
257
+
examples: string[];
258
+
type: string;
259
+
format: string;
260
+
pattern: string;
261
+
};
262
+
profile: {
263
+
description: string;
264
+
type: string;
265
+
properties: {
266
+
name: {
267
+
description: string;
268
+
examples: string[];
269
+
type: string;
270
+
};
271
+
age: {
272
+
description: string;
273
+
examples: number[];
274
+
type: string;
275
+
minimum: number;
276
+
maximum: number;
277
+
};
278
+
};
279
+
required: string[];
280
+
additionalProperties: boolean;
281
+
};
282
+
};
283
+
required: string[];
284
+
additionalProperties: boolean;
285
+
};
286
+
};
287
+
};
288
+
};
289
+
};
290
+
};
291
+
"/api/streams/tokens": {
292
+
get: {
293
+
summary: string;
294
+
description: string;
295
+
"x-codeSamples": {
296
+
label: string;
297
+
lang: string;
298
+
source: string;
299
+
}[];
300
+
responses: {
301
+
"200": {
302
+
description: string;
303
+
content: {
304
+
"application/jsonl": {
305
+
schema: {
306
+
$schema: string;
307
+
description: string;
308
+
type: string;
309
+
properties: {
310
+
message: {
311
+
description: string;
312
+
type: string;
313
+
};
314
+
};
315
+
required: string[];
316
+
additionalProperties: boolean;
317
+
examples: string[];
318
+
};
319
+
};
320
+
};
321
+
};
322
+
};
323
+
};
324
+
};
325
+
"/api/static/openapi.json": {
326
+
get: {
327
+
summary: string;
328
+
description: string;
329
+
"x-codeSamples": {
330
+
label: string;
331
+
lang: string;
332
+
source: string;
333
+
}[];
334
+
};
335
+
};
336
+
};
337
+
declarenamespace__json_default_export$1 {
338
+
export { openapi, info, components, paths };
339
+
}
340
+
//#endregion
341
+
export { age, _exports as bar, bar_d_exports as barNs, __json_default_export as foo, foo_d_exports as fooNs, invalid_d_exports as invalidNs, name, __json_default_export$1 as nested };"
0 commit comments