Skip to content

Commit 615210f

Browse files
committed
Accepting new baselines
1 parent 3a4b56d commit 615210f

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

tests/baselines/reference/controlFlowBinaryOrExpression.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if (isNodeList(sourceObj)) {
8787
if (isHTMLCollection(sourceObj)) {
8888
>isHTMLCollection(sourceObj) : boolean
8989
>isHTMLCollection : (sourceObj: any) => sourceObj is HTMLCollection
90-
>sourceObj : HTMLCollection | { a: string; }
90+
>sourceObj : { a: string; } | HTMLCollection
9191

9292
sourceObj.length;
9393
>sourceObj.length : number
@@ -99,7 +99,7 @@ if (isNodeList(sourceObj) || isHTMLCollection(sourceObj)) {
9999
>isNodeList(sourceObj) || isHTMLCollection(sourceObj) : boolean
100100
>isNodeList(sourceObj) : boolean
101101
>isNodeList : (sourceObj: any) => sourceObj is NodeList
102-
>sourceObj : HTMLCollection | { a: string; }
102+
>sourceObj : { a: string; } | HTMLCollection
103103
>isHTMLCollection(sourceObj) : boolean
104104
>isHTMLCollection : (sourceObj: any) => sourceObj is HTMLCollection
105105
>sourceObj : { a: string; }

tests/baselines/reference/typeGuardEnums.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ else {
2727
if (typeof x !== "number") {
2828
>typeof x !== "number" : boolean
2929
>typeof x : string
30-
>x : number | string
30+
>x : number | string | E | V
3131
>"number" : string
3232

3333
x; // string
3434
>x : string
3535
}
3636
else {
3737
x; // number|E|V
38-
>x : number
38+
>x : number | E | V
3939
}
4040

tests/baselines/reference/typeGuardNesting.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if ((typeof strOrBool === 'boolean' && !strOrBool) || typeof strOrBool === 'stri
3434
>(typeof strOrBool === 'boolean') : boolean
3535
>typeof strOrBool === 'boolean' : boolean
3636
>typeof strOrBool : string
37-
>strOrBool : string | boolean
37+
>strOrBool : boolean | string
3838
>'boolean' : string
3939
>strOrBool : boolean
4040
>false : boolean
@@ -56,7 +56,7 @@ if ((typeof strOrBool === 'boolean' && !strOrBool) || typeof strOrBool === 'stri
5656
>(typeof strOrBool !== 'string') : boolean
5757
>typeof strOrBool !== 'string' : boolean
5858
>typeof strOrBool : string
59-
>strOrBool : string | boolean
59+
>strOrBool : boolean | string
6060
>'string' : string
6161
>strOrBool : boolean
6262
>false : boolean
@@ -94,7 +94,7 @@ if ((typeof strOrBool !== 'string' && !strOrBool) || typeof strOrBool !== 'boole
9494
>(typeof strOrBool === 'boolean') : boolean
9595
>typeof strOrBool === 'boolean' : boolean
9696
>typeof strOrBool : string
97-
>strOrBool : string | boolean
97+
>strOrBool : boolean | string
9898
>'boolean' : string
9999
>strOrBool : boolean
100100
>false : boolean
@@ -116,7 +116,7 @@ if ((typeof strOrBool !== 'string' && !strOrBool) || typeof strOrBool !== 'boole
116116
>(typeof strOrBool !== 'string') : boolean
117117
>typeof strOrBool !== 'string' : boolean
118118
>typeof strOrBool : string
119-
>strOrBool : string | boolean
119+
>strOrBool : boolean | string
120120
>'string' : string
121121
>strOrBool : boolean
122122
>false : boolean

tests/baselines/reference/typeGuardTautologicalConsistiency.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (typeof stringOrNumber === "number" && typeof stringOrNumber !== "number") {
2323
>typeof stringOrNumber === "number" && typeof stringOrNumber !== "number" : boolean
2424
>typeof stringOrNumber === "number" : boolean
2525
>typeof stringOrNumber : string
26-
>stringOrNumber : number | string
26+
>stringOrNumber : string | number
2727
>"number" : string
2828
>typeof stringOrNumber !== "number" : boolean
2929
>typeof stringOrNumber : string

0 commit comments

Comments
 (0)