Accept new baselines

This commit is contained in:
Anders Hejlsberg 2018-09-14 10:48:51 -07:00
parent 524b7c9954
commit 359f2ebd54
2 changed files with 4 additions and 4 deletions

View File

@ -25,9 +25,9 @@ class C<T extends Options> {
>foo : { [P in keyof T]: T[P]; }
!(a && b);
>!(a && b) : false
>(a && b) : T["b"]
>a && b : T["b"]
>!(a && b) : boolean
>(a && b) : 0 | T["b"] | undefined
>a && b : 0 | T["b"] | undefined
>a : T["a"]
>b : T["b"]

View File

@ -16,7 +16,7 @@ class A<P extends Partial<Foo>> {
>doSomething : () => void
this.props.foo && this.props.foo()
>this.props.foo && this.props.foo() : void
>this.props.foo && this.props.foo() : void | undefined
>this.props.foo : P["foo"]
>this.props : Readonly<P>
>this : this