Skip to content

Commit d4d54d6

Browse files
committed
Accept new baselines
1 parent 6cf640e commit d4d54d6

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//// [conditionalTypesASI.ts]
2+
// Repro from #21637
3+
4+
interface JSONSchema4 {
5+
a?: number
6+
extends?: string | string[]
7+
}
8+
9+
10+
//// [conditionalTypesASI.js]
11+
// Repro from #21637
12+
13+
14+
//// [conditionalTypesASI.d.ts]
15+
interface JSONSchema4 {
16+
a?: number;
17+
extends?: string | string[];
18+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=== tests/cases/compiler/conditionalTypesASI.ts ===
2+
// Repro from #21637
3+
4+
interface JSONSchema4 {
5+
>JSONSchema4 : Symbol(JSONSchema4, Decl(conditionalTypesASI.ts, 0, 0))
6+
7+
a?: number
8+
>a : Symbol(JSONSchema4.a, Decl(conditionalTypesASI.ts, 2, 23))
9+
10+
extends?: string | string[]
11+
>extends : Symbol(JSONSchema4.extends, Decl(conditionalTypesASI.ts, 3, 12))
12+
}
13+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=== tests/cases/compiler/conditionalTypesASI.ts ===
2+
// Repro from #21637
3+
4+
interface JSONSchema4 {
5+
>JSONSchema4 : JSONSchema4
6+
7+
a?: number
8+
>a : number
9+
10+
extends?: string | string[]
11+
>extends : string | string[]
12+
}
13+

0 commit comments

Comments
 (0)