Commit graph

15309 commits

Author SHA1 Message Date
Anders Hejlsberg
1710df5f28 Type of for-in variable is keyof T when object type is a type parameter 2016-11-21 12:56:32 -08:00
Anders Hejlsberg
c5558482b7 Accept new baselines 2016-11-21 11:43:15 -08:00
Anders Hejlsberg
5498a95245 Update tests 2016-11-21 11:42:38 -08:00
Anders Hejlsberg
854a20f1fe Update Record<K, T> type 2016-11-21 11:42:21 -08:00
Anders Hejlsberg
76ceab97dd Make keyof T a string-like type 2016-11-21 11:41:51 -08:00
Zhengbo Li
110c3ac6ac Add locale options to tsserver (#12369)
* add locale options to tsserver

* make sys an argument

* fix mistakes and address code review
2016-11-21 10:30:38 -08:00
Anders Hejlsberg
998246af9c Merge pull request #12389 from Microsoft/keyofRelations
Minor fixes for 'keyof T' and indexed acces types
2016-11-20 15:54:41 -08:00
Mohamed Hegazy
f8b8465a4c Merge pull request #12378 from andraaspar/master
Fix issue #12260.
2016-11-20 15:07:31 -08:00
Anders Hejlsberg
4ce494a27d Accept new baselines 2016-11-19 15:10:35 -08:00
Anders Hejlsberg
a439e62138 Add tests 2016-11-19 15:10:22 -08:00
Vladimir Matveev
f2a7434fa3 Merge pull request #12376 from Microsoft/vladima/update-tslint
update to tslint@next
2016-11-19 10:58:36 -08:00
Anders Hejlsberg
dcd225a892 Fix comparable relation for keyof T
Treat keyof T as string | number for purposes of indexing
Allow indexed access types with for-in and in operator
2016-11-19 09:03:23 -08:00
András Parditka
c96bc89982 Fix issue #12260.
Fixed tsserver crashing on Android (Termux).
2016-11-19 11:28:11 +01:00
Vladimir Matveev
eaf791e328 update to tslint@next 2016-11-18 22:53:38 -08:00
Nathan Shively-Sanders
71b28a024a Merge pull request #12310 from Microsoft/check-object-rest-destructuring-assignment
Check object rest destructuring assignment
2016-11-18 16:01:25 -08:00
Nathan Shively-Sanders
b514d7c91c Merge pull request #12362 from Microsoft/disable-evolving-types-with-implicit-any
Disable evolving types with implicit any
2016-11-18 15:39:02 -08:00
Sheetal Nandi
f626ff777f Merge pull request #12363 from Microsoft/declarationsInFilesWithErrors
Fixes for #12291 and  #12326: Declaration emit when there are errors in the source file
2016-11-18 14:57:09 -08:00
Nathan Shively-Sanders
7750fe1a7c Always enable evolving types in Javascript files 2016-11-18 14:13:56 -08:00
Anders Hejlsberg
e81da9cd8a Merge pull request #12351 from Microsoft/mappedTypeRelations
Higher order type relations for mapped types
2016-11-18 14:10:09 -08:00
Sheetal Nandi
aa556502f3 Handle when type alias's type parameter extends type that wont get emitted in .d.ts
Fixes #12326
2016-11-18 14:02:57 -08:00
Nathan Shively-Sanders
a4d584f14a Update baselines to have no evolving types 2016-11-18 13:53:18 -08:00
Nathan Shively-Sanders
8674d92bdb Disable evolving types with implicit any
That is, without --noImplicitAny
2016-11-18 13:51:44 -08:00
Vladimir Matveev
9945529875 use location of config file as initial location for automatic type reference inclusion if possible (#12341) 2016-11-18 13:39:11 -08:00
Anders Hejlsberg
a789990781 Add tests 2016-11-18 13:31:10 -08:00
Anders Hejlsberg
2376e30410 Support apparent types for T[K] indexed access types 2016-11-18 13:30:56 -08:00
Sheetal Nandi
cbde25f229 Handle the scenario when heritage clause of interface is not entity name expression
Fixes #12291
2016-11-18 13:11:33 -08:00
Anders Hejlsberg
075a3eb98f Add new tests 2016-11-18 06:27:45 -08:00
Anders Hejlsberg
79bdc26745 Accept new baselines 2016-11-18 06:27:24 -08:00
Anders Hejlsberg
63387bb5e0 Error on circular constraints in mapped types 2016-11-18 06:13:04 -08:00
Anders Hejlsberg
2646828198 Type relations for generic mapped types 2016-11-17 20:18:00 -08:00
Mohamed Hegazy
9fec77551c Merge pull request #12217 from subzey/feature/rest-loop-index
Codegen: Do not subtract 0 in arguments to rest array loop
2016-11-17 17:31:57 -08:00
Vladimir Matveev
a2b13d05f2 pass project name as a constructor parameter (#12333) 2016-11-17 15:12:32 -08:00
Ryan Cavanaugh
c90a40c58f Merge pull request #12317 from RyanCavanaugh/fix12302
Revert "fix #11670, support type guards in NumberConstructor (#11722)"
2016-11-17 11:17:04 -08:00
Anton Khlynovskiy
3e52f3dfe9 Codegen: Do not subtract 0 in arguments to rest array loop 2016-11-17 22:06:45 +03:00
Ryan Cavanaugh
29481f67f4 Revert "fix #11670, support type guards in NumberConstructor (#11722)"
This reverts commit 4fbbbed321.
2016-11-16 16:25:23 -08:00
Paul van Brenk
52ec508e27 Code fix for missing imports (#11768)
* Add codefix for missing imports + tests

* Re-order and cleanup

* refactor

* make tests pass

* Make import specifier for new imports more comprehensive

* Fix existing import cases

* refactor

* Fix multiple import statement case

* add multiple code fixes and code action filtering and polishing

* not using the generic verify method for import fixes.

* Correct insert position for new imports

* improve the code action filtering logic

* Fix line ending issue

* cache where we can
2016-11-16 16:01:16 -08:00
Nathan Shively-Sanders
0b0b68e79a Merge pull request #12312 from Microsoft/widen-literal-types-of-parameter-properties
Widen literal types of parameter properties
2016-11-16 15:51:42 -08:00
Nathan Shively-Sanders
5dbe5f4fbd Widen literal types of parameter properties 2016-11-16 15:24:42 -08:00
Nathan Shively-Sanders
c7b0083820 Test widen literal types of parameter properties 2016-11-16 15:15:30 -08:00
Zhengbo Li
6f409b580e Fix grammar issue (#12096)
* Fix grammar issue

* Improve the error message

* cr feedback
2016-11-16 14:13:29 -08:00
Andy
6e6bea6913 Merge pull request #12309 from Microsoft/issue_template
Update issue template
2016-11-16 14:11:56 -08:00
Nathan Shively-Sanders
074014e039 Check assignability: rest destructuring assignment 2016-11-16 13:41:25 -08:00
Nathan Shively-Sanders
641948fb0c Test assignability checking of object rests 2016-11-16 13:41:18 -08:00
Andy Hanson
4e954a1962 Update issue template 2016-11-16 13:25:48 -08:00
Nathan Shively-Sanders
6a13fda60c Merge pull request #12304 from Microsoft/improve-spread-helper-emit
Improve spread helper emit
2016-11-16 12:35:32 -08:00
Nathan Shively-Sanders
d566c3be43 Merge branch 'master' into improve-spread-helper-emit 2016-11-16 10:53:05 -08:00
Ron Buckton
3a95f9244b Merge pull request #11874 from Microsoft/emitHelper
Move emit helpers into related transformers
2016-11-16 10:37:35 -08:00
Anders Hejlsberg
a5d9e9624d Merge pull request #12301 from Microsoft/recursiveMappedTypes
Fix recursive mapped types
2016-11-16 10:23:14 -08:00
Nathan Shively-Sanders
e7bfd02ca9 Update baselines with new __assign emit 2016-11-16 10:15:57 -08:00
Ron Buckton
9a1a605f7c Merge branch 'master' into emitHelper 2016-11-16 10:14:20 -08:00