Skip to content

Commit

Permalink
Accept updated baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham committed Sep 25, 2020
1 parent 74779ba commit 4156662
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ function h(obj: { x: number } | { x: string }) {
>obj : { x: number; } | { x: string; }
}
function i(b: boolean, t: { command: string, ok: string }) {
>i : (b: boolean, t: { command: string; ok: string;}) => { command: string; ok: string; } | { command: string; }
>i : (b: boolean, t: { command: string; ok: string;}) => { command: string; ok?: string; }
>b : boolean
>t : { command: string; ok: string; }
>command : string
>ok : string

return { command: "hi", ...(b ? t : {}) } // ok
>{ command: "hi", ...(b ? t : {}) } : { command: string; ok: string; } | { command: string; }
>{ command: "hi", ...(b ? t : {}) } : { command: string; ok?: string; }
>command : string
>"hi" : "hi"
>(b ? t : {}) : { command: string; ok: string; } | {}
Expand Down

0 comments on commit 4156662

Please sign in to comment.