Ron Buckton
b486b5edff
Add overload to Promise.all using variadic tuple
2020-07-01 12:03:14 -07:00
Ron Buckton
eb27d3ec00
Improve inference for Promise.all of 'never[]'
2020-06-29 18:09:45 -07:00
Anders Hejlsberg
9458f8acab
Consistent narrowing to 'never' in conditional and switch statements ( #39191 )
...
* Allow unions and unit types to narrow to 'never'
* Remove odd check for TypeFlags.NotUnionOrUnit
* Accept new baselines
* Accept new API baselines
2020-06-29 15:25:00 -07:00
Anders Hejlsberg
b448540644
No speculative inferences for variadic tuples ( #39281 )
...
* No speculative inferences to types like [...T, U?]
* Add tests
2020-06-29 15:24:32 -07:00
Daniel Rosenwasser
57dd722ab6
Merge pull request #38776 from a-tarasyuk/bug/29890
...
fix(29890): JSX: "extract to constant" generates invalid code
2020-06-29 14:09:52 -07:00
Wesley Wigham
99bec5067b
Use mapped rest type member when expanding rest parameter names ( #39317 )
...
* Use mapped rest type member when expanding rest parameter names
* Add test for #39228 which is also fixed by parameters having unique names
2020-06-29 12:30:23 -07:00
Alexander T
ee5c3fa57d
fix(39047): handle extra spaces after the catch statement ( #39306 )
2020-06-29 10:10:44 -07:00
Andrew Branch
58ed610ef1
Allow distinct string enum members with identical property names to form unions in mapped types ( #39101 )
2020-06-29 10:08:17 -07:00
csigs
3853bf5273
LEGO: Merge pull request 39318
...
LEGO: Merge pull request 39318
2020-06-29 09:11:23 -07:00
csigs
5f04915ccb
LEGO: check in for master to temporary branch.
2020-06-29 16:10:37 +00:00
csigs
03f0fc4cf5
LEGO: Merge pull request 39309
...
LEGO: Merge pull request 39309
2020-06-28 09:11:39 -07:00
csigs
6ed9d56cca
LEGO: check in for master to temporary branch.
2020-06-28 16:10:45 +00:00
Alexander T
c75af697af
fix(29890): wrap variable/method/property to jsx expression
2020-06-28 10:51:11 +03:00
csigs
1aaa2ec45e
LEGO: Merge pull request 39286
...
LEGO: Merge pull request 39286
2020-06-26 15:12:09 -07:00
csigs
80482e4af8
LEGO: check in for master to temporary branch.
2020-06-26 22:11:14 +00:00
Andrew Branch
3d22a4fd72
Preserve newlines between try/catch/finally, if/else, do/while ( #39280 )
...
* Preserve newlines between try/catch, if/else, do/while
* Update baselines
2020-06-26 14:48:19 -07:00
ShuiRuTian
4601a786aa
not narrow static property without type annotation in constructor. ( #39252 )
...
* fix #39226
* fix lint.
2020-06-26 11:08:35 -07:00
Ron Buckton
eb2f4e2337
Switch to ES Map/Set internally ( #33771 )
...
* Add full implemention of Map and Set to shims
* Update default Map interface
* Remove WeakMap/WeakSet
* Add tests for set shim
* Update most usages of Map<K, true> to Set
* PR Feedback
* Fix lint issues
* Change key in fsWatchCallback
* Simpler shim, more tests
* Fix typo in collection shim
2020-06-26 10:12:47 -07:00
Alexander T
95690c0aca
fix(38840): omit completions for a spread like argument in a function definition ( #38897 )
2020-06-26 09:38:05 -07:00
Alexander T
59f80970d9
fix(38785): include in NavigationBar child items from default exported functions ( #38915 )
2020-06-26 09:35:27 -07:00
csigs
535914c6d5
LEGO: Merge pull request 39276
...
LEGO: Merge pull request 39276
2020-06-26 09:11:31 -07:00
csigs
02d7c1ea1b
LEGO: check in for master to temporary branch.
2020-06-26 16:10:42 +00:00
csigs
7edc00f8bc
LEGO: Merge pull request 39270
...
LEGO: Merge pull request 39270
2020-06-25 21:11:26 -07:00
csigs
bf128ed7c9
LEGO: check in for master to temporary branch.
2020-06-26 04:10:37 +00:00
Wenlu Wang
6b4d0bff40
Avoid effect of element access expression ( #39174 )
...
* Avoid effect of element access expression
* Avoid unnecessary copy
* Add more tests
2020-06-25 17:38:05 -07:00
Ron Buckton
d610bbdaef
Update typescript-eslint to 3.4.1-alpha.1 ( #39260 )
2020-06-25 14:38:43 -07:00
Anders Hejlsberg
ee4aee0531
Handle 'keyof' for generic tuple types ( #39218 )
...
* Handle keyof T where T is generic tuple type
* Add tests
* Accept new baselines
* Address CR feedback
* Accept new baselines
2020-06-25 13:49:20 -07:00
Anders Hejlsberg
8df85b5cae
Disable unsound T[K] rule in subtype relations ( #39249 )
...
* Disable unsound T[K] rule in subtype relations
* Add test
2020-06-25 10:22:48 -07:00
csigs
04509c6f56
LEGO: Merge pull request 39257
...
LEGO: Merge pull request 39257
2020-06-25 09:11:33 -07:00
csigs
4eea47e830
LEGO: check in for master to temporary branch.
2020-06-25 16:10:42 +00:00
Ron Buckton
cc7cb9eadb
Upgrade typescript-eslint version ( #39242 )
...
* Upgrade typescript-eslint version
* Update TS version used by typescript-eslint
2020-06-24 16:43:03 -07:00
Wesley Wigham
a3ee09ddc9
Handle recursive type references up to a certain level of expansion in inference ( #38011 )
...
* Handle recursive type references up to a certain level of expansion in inference
* Move object cases into the same conditional branch
2020-06-24 14:24:34 -07:00
Wesley Wigham
d1ebf126d2
Do not consider binding patterns in contextual types for return type inference where all the signature type parameters have defaults ( #39081 )
2020-06-24 13:45:17 -07:00
csigs
785e44704c
LEGO: Merge pull request 39233
...
LEGO: Merge pull request 39233
2020-06-24 09:11:35 -07:00
csigs
038f0115c6
LEGO: check in for master to temporary branch.
2020-06-24 16:10:43 +00:00
Wesley Wigham
7893c9fc7e
Do not add reexported names to the exportSpecifiers list of moduleinfo ( #39213 )
2020-06-23 17:56:44 -07:00
TypeScript Bot
5d9b7855c7
Update user baselines ( #39214 )
...
Co-authored-by: typescript-bot <typescript@microsoft.com>
2020-06-23 17:47:46 -07:00
Ron Buckton
0b1d4a9c96
Leverage syntax cursor as part of reparse ( #39216 )
2020-06-23 17:32:58 -07:00
Ron Buckton
fbd1c958e5
Update failed test tracking to support Mocha 6+ ( #39211 )
...
* Update failed test tracking to support Mocha 6+
* grep should not be an array
2020-06-23 15:19:30 -07:00
TypeScript Bot
964e47415f
Update user baselines ( #39196 )
...
Co-authored-by: typescript-bot <typescript@microsoft.com>
2020-06-23 14:26:30 -07:00
csigs
9f70d498f2
LEGO: Merge pull request 39203
...
LEGO: Merge pull request 39203
2020-06-22 21:11:29 -07:00
csigs
906d2172c9
LEGO: check in for master to temporary branch.
2020-06-23 04:10:38 +00:00
Anders Hejlsberg
d4792062bf
Variadic tuple types ( #39094 )
...
* Initial implementation of variadic tuple types
* Accept new baselines
* Handle variadic elements in tuple type inference
* Special case inference between tuples with matching structure
* Restore check that rest element is last element
* Handle variadic tuples in relationship checking
* Accept new baselines
* Infer readonly constraints when inferring from readonly tuples
* Fix lint issues
* T assignable to readonly [...T] and [...T] assignable to T
* Consistent tuple normalization
* Create variadic tuple types from array literal expressions
* Accept new baselines
* Array literals have tuple types when contextual type is readonly
* Accept new baselines
* Optional elements before required elements become required elements
* Update logic for rest parameters and spread arguments
* Revert special case of contextual readonly array type
* Accept new baselines
* Fix lint issue
* Switch entirely to createTupleType based on element flags
* Don't infer readonly tuple types when inferring to variadic elements
* Handle mapped types applied to generic tuple types
* Handle constraint of indexed access type with generic tuple type
* Accept new baselines
* Address CR feedback
* Simplify indexed access types involving generic tuple types
* Propagate checkMode into getSpreadArgumentType
* Guard against missing globalArrayType
* Inference to [...T, ...U] based on implied arity of T
* Accept new baselines
* Add tests
* Emit .d.ts from tests
* Address CR feedback
2020-06-22 18:35:43 -07:00
Daniel Rosenwasser
e6aedfd38b
Merge pull request #37907 from Jack-Works/feat/class-to-classname
...
feat: add a codefix to fix class to className in react & add spelling suggest for JSX attributes
2020-06-22 18:32:24 -07:00
Daniel Rosenwasser
0476a1aba7
Merge pull request #39112 from microsoft/lego/hb_998_20200617161036026
...
LEGO: Pull request from lego/hb_998_20200617161036026 to master
2020-06-22 18:18:57 -07:00
Daniel Rosenwasser
17490efec9
Merge pull request #39136 from microsoft/lego/hb_998_20200618041040315
...
LEGO: Pull request from lego/hb_998_20200618041040315 to master
2020-06-22 18:18:38 -07:00
Daniel Rosenwasser
20ce465e17
Merge pull request #39141 from microsoft/lego/hb_998_20200618101048830
...
LEGO: Pull request from lego/hb_998_20200618101048830 to master
2020-06-22 18:18:06 -07:00
Daniel Rosenwasser
f30030f079
Merge pull request #39125 from microsoft/lego/hb_998_20200617221056165
...
LEGO: Pull request from lego/hb_998_20200617221056165 to master
2020-06-22 18:17:31 -07:00
Daniel Rosenwasser
a13f25d68b
Merge pull request #39107 from microsoft/lego/hb_998_20200617101042356
...
LEGO: Pull request from lego/hb_998_20200617101042356 to master
2020-06-22 18:17:06 -07:00
Daniel Rosenwasser
bc4debee95
Merge pull request #39104 from microsoft/lego/hb_998_20200617041034351
...
LEGO: Pull request from lego/hb_998_20200617041034351 to master
2020-06-22 18:16:33 -07:00