Skip to content

Commit 4156662

Browse files
committed
Accept updated baseline
1 parent 74779ba commit 4156662

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/baselines/reference/spreadOverwritesPropertyStrict.types

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ function h(obj: { x: number } | { x: string }) {
7878
>obj : { x: number; } | { x: string; }
7979
}
8080
function i(b: boolean, t: { command: string, ok: string }) {
81-
>i : (b: boolean, t: { command: string; ok: string;}) => { command: string; ok: string; } | { command: string; }
81+
>i : (b: boolean, t: { command: string; ok: string;}) => { command: string; ok?: string; }
8282
>b : boolean
8383
>t : { command: string; ok: string; }
8484
>command : string
8585
>ok : string
8686

8787
return { command: "hi", ...(b ? t : {}) } // ok
88-
>{ command: "hi", ...(b ? t : {}) } : { command: string; ok: string; } | { command: string; }
88+
>{ command: "hi", ...(b ? t : {}) } : { command: string; ok?: string; }
8989
>command : string
9090
>"hi" : "hi"
9191
>(b ? t : {}) : { command: string; ok: string; } | {}

0 commit comments

Comments
 (0)