TypeScript/tests/cases/conformance/types
Anders Hejlsberg 73736d9b84
Fix logic for determining whether to simplify keyof on mapped types (#44042)
* Fix logic for determining whether to simplify keyof on mapped types

* Add regression test

* Improve hasDistributiveNameType check

* Add more tests

* Address code review feedback

* Add more tests
2021-05-19 13:43:22 -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
conditional Add support for abstract constructor types (#36392) 2021-01-07 17:11:14 -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 Fix narrowing of intersections of type variables and primitive types (#43131) 2021-03-18 08:55:50 -07:00
keyof Add regression test 2019-06-23 09:19:56 -10:00
literal Reinstate constraint check for template literal types (#43661) 2021-04-13 12:17:55 -10:00
localTypes
mapped Fix logic for determining whether to simplify keyof on mapped types (#44042) 2021-05-19 13:43:22 -07:00
members Relax requirements on index signatures to 'any' when a type also contains a string index signature to 'any' (#43065) 2021-03-04 17:42:00 -08:00
namedTypes Adding more tests 2016-05-16 13:37:17 -07:00
never Never-reducing intersections are not untyped function call targets (#42917) 2021-02-23 17:22:41 -08: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 Make hasCorrectArity handle tuples properly 2020-06-04 23:46:56 -04:00
specifyingTypes Add regression tests 2018-08-06 10:02:33 -07:00
spread Gh 41788 incorrect output for esprivate with nested class in esnext (#42663) 2021-04-07 08:23:16 -07: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 Leading and middle rest elements in tuple types (#41544) 2021-01-04 15:12:51 -10:00
typeAliases Intrinsic string types (#40580) 2020-09-21 07:09:29 -10:00
typeParameters Add regression test 2018-07-24 15:33:02 -07:00
typeRelationships Exclude enum/number compatibility rule from comparable relation (#42472) 2021-03-06 06:52:00 -08:00
union Add support for abstract constructor types (#36392) 2021-01-07 17:11:14 -08:00
uniqueSymbol Gh 41788 incorrect output for esprivate with nested class in esnext (#42663) 2021-04-07 08:23:16 -07:00
unknown Narrow unknown under inequality when assumed false (#33488) 2019-09-18 10:54:42 -07:00
witness