Commit Graph

3859 Commits

Author SHA1 Message Date
Ron Buckton e1f8be59f0 Merge checkIteratedType* functions 2017-02-02 22:30:58 -08:00
Ron Buckton 94b37b1f20 Inline isThenableType 2017-02-02 21:43:51 -08:00
Ron Buckton 56a360c7ff Unify getIteratedTypeOf* functions 2017-02-02 21:36:09 -08:00
Ron Buckton 64be1f2da2 merge getIteratedTypeOfIterableOrElementTypeOf* 2017-02-02 14:45:58 -08:00
Ron Buckton 5d415cac52 Merge branch 'master' into asyncGenerators 2017-02-02 12:11:44 -08:00
Anders Hejlsberg 86b3c14099 Consider 'object' a valid base type + apparent type of 'object' is {} 2017-02-01 11:36:33 -08:00
Anders Hejlsberg 15c6022e40 Fix typo causing bug 2017-02-01 09:32:33 -08:00
Anders Hejlsberg 7e7057a89d Empty object type assignable to mapped type with optional properties 2017-01-30 16:53:31 -08:00
Anders Hejlsberg 16103a9ca2 Fix isSymbolInScopeOfMappedTypeParameter to include mapped types 2017-01-30 15:40:31 -08:00
Anders Hejlsberg f32f95ae23 Merge pull request #13743 from Microsoft/mixinClasses
Mixin classes
2017-01-30 12:47:21 -10:00
Nathan Shively-Sanders cca68adf87 Import helpers skips __assign when target >= ES6
Instead, Object.assign is emitted.
2017-01-30 12:42:19 -08:00
Anders Hejlsberg 763df852c6 Revise intersection construct signature mixin algorithm 2017-01-29 08:14:28 -08:00
Anders Hejlsberg 89b72ac9ce Support mixin classes 2017-01-28 14:46:29 -08:00
Nathan Shively-Sanders 4d67b0c2b6 Allow super to access method signatures
Previously, super was only allowed to access method *declarations*. But
method signatures can come from interfaces that merge with classes, and
should also be accessible as methods on super.
2017-01-27 09:53:57 -08:00
Ryan Cavanaugh 76b1e95c3d Always call checkExpression on JSX attribute values
Fixes #13676
2017-01-25 10:40:59 -08:00
Andy Hanson a68a7cea3f Merge branch 'master' into import_star_namespace 2017-01-25 07:03:35 -08:00
Andy c55b9ffe83 Merge pull request #13658 from Microsoft/findallrefs_mappedtypes
Support find-all-references on mapped types.
2017-01-24 13:31:48 -08:00
Andy Hanson 0d21c241b2 Support find-all-references on mapped types.
* Need to put a 'mappedTypeOrigin' property in SymbolLinks
2017-01-24 10:17:17 -08:00
Nathan Shively-Sanders ceb5fac343 Merge pull request #13558 from HerringtonDarkholme/rest-spread-intrinsic
Fix #13556: enable rest/spread on `object`
2017-01-24 08:59:02 -08:00
Herrington Darkholme 24bb21c55a address code review 2017-01-24 11:24:30 +08:00
Anders Hejlsberg 6d6b19fd23 Fix typo in intersection apparent type 2017-01-22 11:54:39 -08:00
Anders Hejlsberg 5b9004e1bc Merge pull request #13604 from Microsoft/intersectionBaseTypes
Allow deriving from object and intersection types
2017-01-21 11:38:24 -10:00
Anders Hejlsberg ad71da0a7f Fix error reporting bug 2017-01-21 13:06:54 -08:00
Tingan Ho 02af00fae7 Fixes formatting 2017-01-21 17:08:48 +01:00
Tingan Ho 7d773f18e0 Adds non-ambient context check 2017-01-21 17:07:37 +01:00
Vladimir Matveev 4ee8213dde do not capture 'arguments' when property name 'arguments' is met (#13600)
do not capture 'arguments' when property name 'arguments' is met
2017-01-20 19:59:26 -08:00
Sheetal Nandi a185ddc885 Merge pull request #13584 from Microsoft/decoratorMetadata
Use the value symbol for decorator purpose only if it is same as type symbol
2017-01-20 13:46:19 -08:00
Anders Hejlsberg c16c7d56c0 Allow base constructor types to be intersections 2017-01-20 09:17:14 -08:00
Anders Hejlsberg a9af10b030 Intersections as their own 'this' type 2017-01-20 06:16:08 -08:00
Mohamed Hegazy d11d03a06c Fix https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14036:
Remove assert.
2017-01-19 17:36:16 -08:00
Ron Buckton 21bf48551c Always descend into loop, fix lint warnings 2017-01-19 14:57:34 -08:00
Anders Hejlsberg c51e2867f5 Allow object intersection types in class implements clauses 2017-01-19 14:47:26 -08:00
Anders Hejlsberg 1c2f7f866b Improve efficiency of union/intersection resolved property caching 2017-01-19 14:30:53 -08:00
Sheetal Nandi 679a7ec04f Use the value symbol for decorator purpose only if it is same as typesymbol
Fixes #13155
2017-01-19 14:27:53 -08:00
Anders Hejlsberg a6c5306479 Allow object intersection types as class/interface base types 2017-01-19 13:58:09 -08:00
Ron Buckton 74498bb076 Remove unnecessary widening, more PR feedback 2017-01-19 13:19:46 -08:00
Ron Buckton f9999e9738 PR Feedback 2017-01-18 12:42:51 -08:00
Nathan Shively-Sanders 34fa27895f Merge branch 'master' into property-access-for-string-index-sigs 2017-01-18 08:29:38 -08:00
Herrington Darkholme b4c15982ff fix #13556: enable rest/spread on object 2017-01-18 14:57:20 +08:00
Anders Hejlsberg 4d501d1f44 Merge pull request #13523 from Microsoft/fixNumericIndexedAccess
Fix numeric indexed access types
2017-01-17 11:51:52 -10:00
Nathan Shively-Sanders 899d51267d Merge pull request #12065 from about-code/master
Fixing #442: Impossible to define static 'length' function on class
2017-01-17 11:25:46 -08:00
Andy Hanson 30ccc7a5d0 Merge branch 'master' into map5 2017-01-17 10:42:27 -08:00
Andy 4ba382a1d1 Merge pull request #13478 from Microsoft/string_literal_rest_parameter
Support completions for string literal in rest parameter
2017-01-17 06:40:15 -08:00
Anders Hejlsberg d6fde0c07f Merge pull request #13483 from Microsoft/operatorsAndNullableTypes
Improved checking of nullable operands in expressions
2017-01-16 15:03:48 -10:00
Anders Hejlsberg 919e682e3f Allow T[N] where N is numeric and T has apparent numeric index signature 2017-01-16 12:18:01 -08:00
Ron Buckton 35ef1f7cbf Merge branch 'master' into asyncGenerators 2017-01-15 15:28:04 -08:00
about-code 9b217e31df Removing es6 method/property distinction.
Adding tests with default export and anonymous class expressions.
2017-01-14 16:30:12 +01:00
about-code 66263b3782 Merge remote-tracking branch 'upstream/master' 2017-01-14 12:24:07 +01:00
Daniel Rosenwasser 33f6fa8cc6 Error on the return statement itself when checking against function return types. 2017-01-13 18:47:18 -08:00
Anders Hejlsberg 894ba853a0 Improved undefined/null handling for unary operators 2017-01-13 16:09:03 -08:00