Accept new baselines

This commit is contained in:
Anders Hejlsberg
2018-02-05 13:56:29 -08:00
parent 6cf640ed3b
commit d4d54d61a6
3 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
//// [conditionalTypesASI.ts]
// Repro from #21637
interface JSONSchema4 {
a?: number
extends?: string | string[]
}
//// [conditionalTypesASI.js]
// Repro from #21637
//// [conditionalTypesASI.d.ts]
interface JSONSchema4 {
a?: number;
extends?: string | string[];
}

View File

@@ -0,0 +1,13 @@
=== tests/cases/compiler/conditionalTypesASI.ts ===
// Repro from #21637
interface JSONSchema4 {
>JSONSchema4 : Symbol(JSONSchema4, Decl(conditionalTypesASI.ts, 0, 0))
a?: number
>a : Symbol(JSONSchema4.a, Decl(conditionalTypesASI.ts, 2, 23))
extends?: string | string[]
>extends : Symbol(JSONSchema4.extends, Decl(conditionalTypesASI.ts, 3, 12))
}

View File

@@ -0,0 +1,13 @@
=== tests/cases/compiler/conditionalTypesASI.ts ===
// Repro from #21637
interface JSONSchema4 {
>JSONSchema4 : JSONSchema4
a?: number
>a : number
extends?: string | string[]
>extends : string | string[]
}