TypeScript/tests/cases/conformance
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
..
ambient
async
classes Exempt ambient private properties from noImplicitAny (#36640) 2020-02-14 15:01:18 -08:00
constEnums
controlFlow Support for/of variables in assertion checking (#37432) 2020-03-17 19:20:56 -07:00
declarationEmit
decorators
directives Added @ts-expect-error to @ts-ignore directives (#36014) 2020-03-05 10:37:36 -05:00
dynamicImport Add module: es2020 (#33893) 2019-12-20 16:29:49 -08:00
emitter
enums disallow 'await' and 'yield' in property and enum member initializer (#34892) 2019-11-14 17:44:48 -08:00
es6 Fix initialization error when destructuring from object literal that includes a spread assignment (#36865) 2020-02-19 08:28:12 -08:00
es7
es2017
es2018 add support for Lift Template Literal Restriction (#23801) 2020-02-05 08:59:51 -08:00
es2019
es2020/modules Implement export as namespace from (#34903) 2019-12-20 16:00:20 -08:00
expressions Private named instance fields (#30829) 2019-12-27 13:07:35 -08:00
externalModules Fix longer type-only property access in non-emitting heritage clauses (#37264) 2020-03-09 12:05:36 -07:00
functions Fix ThisParameterType<T> type (#36013) 2020-01-06 08:55:34 -10:00
generators
interfaces
internalModules
jsdoc Preserve arity for preserving js optional parameters (#37173) 2020-03-04 00:48:53 -08:00
jsx feat(36908): add 'property overwritten by spread' error for jsx attributes. add related span for conflicting declaration in spread (#37329) 2020-03-17 13:13:38 -07:00
moduleResolution
parser fix spelling errors (#36523) 2020-01-30 13:39:54 -08:00
references
salsa Fix getEffectiveTypeAnnotationNode 2020-01-03 22:47:17 -05:00
scanner
statements
Symbols
types Add the 'awaited' type operator (#35998) 2020-03-20 16:09:01 -07:00
typings
fixSignatureCaching.ts
inferFromBindingPattern.ts Make no inferences from binding patterns with no defaults (#35454) 2019-12-05 07:09:45 -08:00