Commit graph

12 commits

Author SHA1 Message Date
Ron Buckton e3ec7b18b8
Add the 'awaited' type operator (#35998)
* Add the 'awaited' type operator

* Add script to manually add reviewers to a PR when GH 'Suggested Reviewers' breaks

* Fix lint error in review script

* Only defer generic awaited type for possible thenable

* Add variance-like behavior for awaited

* Switch awaited type params to 'unreliable' variance

* fix typo in inferTypes

* LKG without syntax in lib

* LKG with new syntax in lib

* Add 'strictAwaitedTypes' flag

* Treat strictAwaitedTypes as strict-mode flag

* Rename TAll, remove duplicate definition of 'race'

* Apply suggestions from code review

Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Fix inference priority

* Update comment to isGenericAwaitableType

* Add overloads for then/catch to Promise

* Add inference heuristic for T | PromiseLike<T> (for any PromiseLike)

* Remove strictAwaitedTypes flag

Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
2020-03-20 16:09:01 -07:00
Wesley Wigham 0326534a2a
Update LKG (#37087) 2020-02-27 14:24:21 -08:00
Wesley Wigham 91ffa1c752
Update LKG (#36164) 2020-01-13 13:11:29 -08:00
Ron Buckton 29becf0501
Update LKG (#33710) 2019-10-01 13:17:17 -07:00
Daniel Rosenwasser 00bf32ca39 Update LKG. 2019-02-28 14:35:03 -08:00
Daniel Rosenwasser 40bd7c89ab Update LKG. 2018-11-12 16:27:38 -08:00
Wesley Wigham fd32cb97a4
Update LKG (#25470) 2018-07-05 16:05:09 -07:00
Ryan Cavanaugh 7a7d04e126 Tests passing and lib loading 2018-06-10 20:05:12 -07:00
Mohamed Hegazy 2f73986b44 Update LKG 2018-06-04 14:02:51 -07:00
Wesley Wigham 79e5e79ef7
Update LKG 2018-03-28 17:46:57 -07:00
Andy 530d7e9358
Update LKG (#22085) 2018-02-21 09:12:48 -08:00
Mohamed Hegazy 451561ec8d Update LKG 2017-04-26 14:38:47 -07:00