TypeScript/tests/cases/conformance/types
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
..
any [Transforms] Merge master 08/09 (#10263) 2016-08-26 15:51:10 -07:00
asyncGenerators Fix incorrect parameter types for AsyncIterator next/return (#33354) 2019-09-17 21:02:12 -07:00
awaited Add the 'awaited' type operator (#35998) 2020-03-20 16:09:01 -07:00
conditional Add inference priority level for conditional types in contravariant positions (#35199) 2019-11-21 13:05:44 -08:00
contextualTypes Add more tests for await 2018-09-21 10:32:28 -07:00
forAwait Remove ES2018 transforms for ES2018 target (#26315) 2019-02-06 15:35:52 -08:00
import Module or import types (#22592) 2018-04-02 10:18:23 -07:00
intersection Reduce intersections by discriminants (#36696) 2020-02-28 17:06:44 -08:00
keyof Add regression test 2019-06-23 09:19:56 -10:00
literal Contextually typed binding element initializers (#35855) 2020-01-06 12:53:23 -08:00
localTypes
mapped Fix regression of generic T assignability to Partial<T> (#32354) 2019-07-12 07:57:55 -07:00
members Revert more baselines, add jake task for typemock 2017-12-19 13:40:32 -08:00
namedTypes Adding more tests 2016-05-16 13:37:17 -07:00
never Merge branch 'master' into vfs 2018-04-17 14:39:20 -07:00
nonPrimitive Check that test cases produce expected types 2018-05-01 13:05:49 -07:00
objectTypeLiteral Fixing test 2016-05-16 13:37:03 -07:00
primitives
rest Properly strip readonly from rest argument types (#35169) 2019-11-18 13:11:36 -08:00
specifyingTypes Add regression tests 2018-08-06 10:02:33 -07:00
spread More precise property-overwritten-by-spread errors (#37192) 2020-03-03 15:10:19 -08:00
stringLiteral Update tests 2016-09-01 14:22:18 -07:00
thisType Fix access of protected members on generic this-type (#36928) 2020-02-21 09:33:21 -08:00
tuple Don't inferFromIndexTypes() twice (#34501) 2020-03-04 13:19:35 -08:00
typeAliases Fix local and exported type alias merging (#36237) 2020-01-22 13:16:49 -08:00
typeParameters Add regression test 2018-07-24 15:33:02 -07:00
typeRelationships Add regression tests 2019-10-20 18:00:08 -07:00
union Reduce intersections by discriminants (#36696) 2020-02-28 17:06:44 -08:00
uniqueSymbol Remove overzealous simple relationship check for unique symbols 2019-01-14 17:08:04 -08:00
unknown Narrow unknown under inequality when assumed false (#33488) 2019-09-18 10:54:42 -07:00
witness