Skip to content

Commit 0bed057

Browse files
committed
Accept new baselines
1 parent 08b6e2e commit 0bed057

4 files changed

+5
-5
lines changed

tests/baselines/reference/controlFlowCommaExpressionAssertionWithinTernary.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function foo2(param: number | null | undefined): number | null {
2323
>assert(param !== undefined) : void
2424
>assert : (value: any) => asserts value
2525
>param !== undefined : boolean
26-
>param : number | null | undefined
26+
>param : number | null
2727
>undefined : undefined
2828
>param : number | null
2929
>null : null

tests/baselines/reference/logicalAndOperatorStrictMode.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ const v5 = v && v;
256256
>v5 : void
257257
>v && v : void
258258
>v : void
259-
>v : void
259+
>v : never
260260

261261
const v6 = v && u;
262262
>v6 : void

tests/baselines/reference/logicalAndOperatorWithEveryType.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ var re5 = a5 && a5;
300300
>re5 : void
301301
>a5 && a5 : void
302302
>a5 : void
303-
>a5 : void
303+
>a5 : never
304304

305305
var re6 = a6 && a5;
306306
>re6 : void

tests/baselines/reference/voidIsInitialized.types

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if(typeof x === "undefined") {
1414
>"undefined" : "undefined"
1515

1616
x // no error: assume x2 is initialised
17-
>x : void
17+
>x : undefined
1818
}
1919

2020
if(typeof y !== "undefined") {
@@ -24,6 +24,6 @@ if(typeof y !== "undefined") {
2424
>"undefined" : "undefined"
2525

2626
y // no error: do not narrow void
27-
>y : void
27+
>y : never
2828
}
2929

0 commit comments

Comments
 (0)