Commit Graph

32018 Commits

Author SHA1 Message Date
csigs 7d4a801f0a LEGO: check in for master to temporary branch. 2020-09-22 00:10:49 +00:00
Alex T 587252cbe9 feat(40674): make error messages more consistent (#40675) 2020-09-21 13:22:15 -07:00
Alex T 0310b530d8 feat(40663/40664): improve error messages for assignment assertions '!' (#40669) 2020-09-21 11:20:01 -07:00
csigs 9c0eb229ef LEGO: Merge pull request 40672
LEGO: Merge pull request 40672
2020-09-21 11:11:16 -07:00
csigs 63c518e819 LEGO: check in for master to temporary branch. 2020-09-21 18:10:43 +00:00
Anders Hejlsberg fbce4f6c98 Intrinsic string types (#40580)
* Introduce Uppercase<T> and Lowercase<T> intrinsic types

* Accept new API baselines

* Add Uppercase/Lowercase/Capitalize/Uncapitalize to lib.d.ts

* Update fourslash

* Add an 'intrinsic' keyword

* Update template literal type tests

* Accept new API baselines

* Minor fixes

* Switch Capitalize<T> and Uncapitalize<T> to intrinsic types

* Add tests

* Accept new baselines

* Accept new baselines

* Remove template literal type casing modifiers

* Update tests

* Accept new baselines

* Add more tests

* Normalize nested template literal types

* Add normalization tests

* Accept new baselines

* Update tests
2020-09-21 07:09:29 -10:00
Anders Hejlsberg ce3dbef5f7 Support properties of mapped types in assertion control flow analysis (#40482)
* Support properties of mapped types in assertion control flow analysis

* Add regression test

* Accept new baselines
2020-09-21 07:07:29 -10:00
Tim van der Lippe 8cd4793a9c Fix typo in isChangedSignagure (#40668)
The correct spelling is `isChangedSignature`.
2020-09-21 08:33:37 -07:00
Anders Hejlsberg 17c7c261d4 Properly preserve modifiers in homomorphic mapped types with 'as' clauses (#40633)
* Use original property name to fetch source property for modifiers

* Add regression test

* Accept new baselines
2020-09-19 06:12:39 -10:00
csigs 8cdf5a20d9 LEGO: Merge pull request 40641
LEGO: Merge pull request 40641
2020-09-18 17:11:17 -07:00
csigs c67fe4c248 LEGO: check in for master to temporary branch. 2020-09-19 00:10:42 +00:00
Hikari Hayashi f1ac8cd93f Fix children prop for react-jsx and react-jsxdev (#40630)
* Fix children prop for `react-jsx` and `react-jsxdev`

* Add tests
2020-09-18 14:26:20 -07:00
Alex T 6c6ddfe5c0 fix(39899): include in NavigationBar default exported call expression arguments (#40412) 2020-09-18 13:06:56 -07:00
TypeScript Bot 0c08138490 Update package-lock.json 2020-09-18 06:20:48 +00:00
Andrew Branch 735a67a05e Fix iterable contextual type (#40592) 2020-09-17 10:42:47 -07:00
Alex T d779a19053 fix(40432): show as keyword in function context (#40481) 2020-09-17 02:15:48 -07:00
TypeScript Bot 02f5001839 Update package-lock.json 2020-09-17 06:20:29 +00:00
Wenlu Wang f66c8e6a69 Fix missing renamed compiler flags (#40606) 2020-09-16 22:41:02 -07:00
Wesley Wigham 081f98232b Handle the mapping between Array and ReadonlyArray in isTypeDerivedFrom 2020-09-16 13:31:13 -07:00
TypeScript Bot a5babe1c8f Update package-lock.json 2020-09-16 06:20:25 +00:00
csigs 1e7214fa6d LEGO: Merge pull request 40579
LEGO: Merge pull request 40579
2020-09-15 17:11:33 -07:00
csigs 4855759ca0 LEGO: check in for master to temporary branch. 2020-09-16 00:11:01 +00:00
csigs 23cb2d844f LEGO: Merge pull request 40573
LEGO: Merge pull request 40573
2020-09-15 11:11:11 -07:00
csigs 0425b7ae24 LEGO: check in for master to temporary branch. 2020-09-15 18:10:42 +00:00
TypeScript Bot a8456085e3 Update package-lock.json 2020-09-15 06:20:25 +00:00
csigs b908d6698e LEGO: Merge pull request 40566
LEGO: Merge pull request 40566
2020-09-14 23:11:13 -07:00
csigs ca7c413750 LEGO: check in for master to temporary branch. 2020-09-15 06:10:46 +00:00
Wesley Wigham 98314d77e8 Use unexpanded parameter list in serialization when the expanded list has a non-trailing variadic position (#40556) 2020-09-14 19:56:24 -07:00
Wesley Wigham d40663f7e5 Pull all history in branch sync script
This got broken when it got updated to checkout@v2, which by default only checks out the specified ref and none of its history.
2020-09-14 19:55:36 -07:00
Ron Buckton dba042d7d5 Add quick fix to add 'void' to Promise resolved without value (#40558)
* Add codefix to add 'void' to Promise resolved without value

* Add specific error message in checker to reduce quick-fix time in editor
2020-09-14 19:12:33 -07:00
csigs 7db91182f7 LEGO: Merge pull request 40563
LEGO: Merge pull request 40563
2020-09-14 17:11:41 -07:00
csigs 85553ec564 LEGO: check in for master to temporary branch. 2020-09-15 00:11:11 +00:00
Andrew Branch 575baf5c7f Support auto-import from paths alias without baseUrl (#40546) 2020-09-14 15:23:47 -07:00
Nathan Shively-Sanders ec36d73e7a Fix error on duplicate commonjs exports (#40545)
* Fix error on duplicate commonjs exports

Previously, the code missed setting the parent pointer for the lhs
access expression.

Also add declaration emit of element access expressions, missed in my
previous PR.

* Switch to excludes=None, add test case

CommonJS exports have None excludes, but still have an error issued by
the checker. This is the previous behaviour even though it would be nice
to add some exclusions.
2020-09-14 13:12:51 -07:00
Alex T c493d077a3 copy prologue directives to new file (#40306) 2020-09-14 12:24:32 -07:00
Wesley Wigham 94123d5744 Issue a diagnostic when the node builder performs truncation despite the NoTruncation flag being set (#40477) 2020-09-14 12:20:57 -07:00
csigs d6859c3480 LEGO: Merge pull request 40547
LEGO: Merge pull request 40547
2020-09-14 11:11:22 -07:00
csigs a6ea950c1b LEGO: check in for master to temporary branch. 2020-09-14 18:10:53 +00:00
Ryan Cavanaugh 21d781fa54 Fix incorrect name of index signature flag in implementation (#40541) 2020-09-14 09:32:22 -07:00
csigs 8d6aecbdde LEGO: Merge pull request 40537
LEGO: Merge pull request 40537
2020-09-14 05:11:12 -07:00
csigs ff5eef4ad4 LEGO: check in for master to temporary branch. 2020-09-14 12:10:34 +00:00
TypeScript Bot e9d2aa1dd2 Update package-lock.json 2020-09-14 06:20:45 +00:00
csigs 5fa379c742 LEGO: Merge pull request 40535
LEGO: Merge pull request 40535
2020-09-13 23:11:11 -07:00
csigs 9be710bbea LEGO: check in for master to temporary branch. 2020-09-14 06:10:37 +00:00
Daniel Rosenwasser bbf26a07eb Remove technically unnecessary 'module' option from 'harness' config. (#40526) 2020-09-12 23:19:02 -07:00
Anders Hejlsberg 57c8938d9e Consistent inferences when inferring to template literal type (#40518)
* Consistently make inferences when inferring to template literal type

* Add tests

* Accept new baselines
2020-09-12 16:33:33 -10:00
TypeScript Bot c9422e6aa1 Update package-lock.json 2020-09-12 06:20:06 +00:00
Andrew Casey 46506b5872 Merge pull request #40095 from rhillefeld/master
Added zero-padding to timestamp output
2020-09-11 18:12:31 -07:00
Nathan Shively-Sanders 9c99870058 Support element access aliases: exports["x"] = x (#40514) 2020-09-11 18:05:47 -07:00
Anders Hejlsberg eee799fe0c Properly check types in template literal placeholders (#40498)
* Properly check types in template literal placeholders

* Add regression test

* Update test

* Accept new baselines
2020-09-11 14:48:35 -10:00