diff --git a/tests/baselines/reference/throwExpressions.es2015.types b/tests/baselines/reference/throwExpressions.es2015.types index cc8ed80f5f6..145f56910ca 100644 --- a/tests/baselines/reference/throwExpressions.es2015.types +++ b/tests/baselines/reference/throwExpressions.es2015.types @@ -14,7 +14,7 @@ const a = condition ? 1 : throw new Error(); const b = condition || throw new Error(); >b : true >condition || throw new Error() : true ->condition : true +>condition : boolean >throw new Error() : never >new Error() : Error >Error : ErrorConstructor @@ -37,7 +37,7 @@ const x = "x", y = "y", z = "z"; const w = condition ? throw true ? x : y : z; >w : "x" | "y" | "z" >condition ? throw true ? x : y : z : "x" | "y" | "z" ->condition : true +>condition : boolean >throw true ? x : y : "x" | "y" >throw true : never >true : true diff --git a/tests/baselines/reference/throwExpressions.esnext.types b/tests/baselines/reference/throwExpressions.esnext.types index 2b043748f14..cad2562bd0c 100644 --- a/tests/baselines/reference/throwExpressions.esnext.types +++ b/tests/baselines/reference/throwExpressions.esnext.types @@ -14,7 +14,7 @@ const a = condition ? 1 : throw new Error(); const b = condition || throw new Error(); >b : true >condition || throw new Error() : true ->condition : true +>condition : boolean >throw new Error() : never >new Error() : Error >Error : ErrorConstructor @@ -37,7 +37,7 @@ const x = "x", y = "y", z = "z"; const w = condition ? throw true ? x : y : z; >w : "x" | "y" | "z" >condition ? throw true ? x : y : z : "x" | "y" | "z" ->condition : true +>condition : boolean >throw true ? x : y : "x" | "y" >throw true : never >true : true