Daniel Rosenwasser
4e3efc2e90
fix no space before equal operator in type parameter ( #29990 )
...
fix no space before equal operator in type parameter
2019-02-20 12:16:18 -08:00
xiaofa
7c8c6cf4d0
fix no space before equal operator in type parameter
2019-02-20 18:12:09 +08:00
Wesley Wigham
eafff75c2a
Remove diagnostic dependent output in structuredTypeRelatedTo ( #29817 )
...
* Unify variance probing error exceptions between interfaces/aliases
* Consistiently return false on variance probe failure
* Remove strictFunctionTypes early bail from getVariances so independent type parameters are correctly measured
* Fix lint, remove now-redundant change from covariant void check function
2019-02-19 11:39:16 -08:00
Wesley Wigham
84076a5535
Add diagnostic context for expando property declarations ( #29905 )
2019-02-13 22:54:33 -08:00
Anders Hejlsberg
f93f4f3c62
Merge pull request #29847 from Microsoft/inferToUnionTypes
...
Improve inference to union and intersection types
2019-02-11 11:34:05 -08:00
Anders Hejlsberg
d66000bc47
Merge pull request #29787 from Microsoft/inferToPartiallyHomomorphic
...
Infer to partially homomorphic types (such as Pick<T, K>)
2019-02-11 11:33:27 -08:00
Anders Hejlsberg
ce6c04e9b5
Merge branch 'master' into inferToUnionTypes
2019-02-11 11:00:41 -08:00
Anders Hejlsberg
32b44ac65a
Merge pull request #29858 from Microsoft/fixContextualRestTuple
...
Fix contextual types computed from rest parameters
2019-02-11 10:59:11 -08:00
Anders Hejlsberg
710826e37e
Add regression test
2019-02-11 09:46:02 -08:00
Nathan Shively-Sanders
17d16d1bbb
Disable checkJS survey ( #29830 )
...
* Disable checkJS survey
* Completely remove survey infrastructure
* Re-instate the protocol part of SurveyReady
2019-02-11 08:36:35 -08:00
Anders Hejlsberg
35cf397ae3
Add regression tests
2019-02-10 15:29:14 -08:00
Anders Hejlsberg
15610faa9d
Update test
2019-02-10 15:18:45 -08:00
Matt McCutchen
1aca1dd036
Make the assignability rule for conditional types require the check
...
types and distributivity to be identical.
Fixes #27118 .
2019-02-09 17:22:08 -05:00
Anders Hejlsberg
e49320d1db
Add more tests
2019-02-08 06:49:26 -08:00
Kagami Sascha Rosylight
b3c179540a
String.prototype.{trimStart,trimEnd} hit stage 4
2019-02-08 00:51:23 +09:00
Kagami Sascha Rosylight
f525a89e87
Array.prototype.{flat,flatMap} hit stage 4
2019-02-08 00:10:34 +09:00
Kagami Sascha Rosylight
a8823f5169
Merge branch 'master' into es2019
2019-02-07 10:08:26 +09:00
Wesley Wigham
8e5dcfbde5
Add try priors as finally lock label andecedents rather than pre finally label antecedents ( #29790 )
2019-02-06 16:59:26 -08:00
Anders Hejlsberg
62c62f4f87
Add tests
2019-02-06 15:41:43 -08:00
Kagami Sascha Rosylight
6249b4c704
Remove ES2018 transforms for ES2018 target ( #26315 )
...
* rename esnext.ts as es2018.ts
* remove ES2018 transforms for ES2018 target
* change target from esnext to es2018
* rename tests
2019-02-06 15:35:52 -08:00
Anders Hejlsberg
d9ee86723a
Merge pull request #29740 from Microsoft/fixCircularMappedArrayTuple
...
Fix issues related to circular mapped array and tuple types
2019-02-06 13:24:19 -08:00
Daniel Rosenwasser
4505eea92d
Merge pull request #29766 from Microsoft/USE-ALL-THE-ES2015-NAMES-WESLEY-WHAT-IS-SO-HARD-ABOUT-THAT
...
Expand "set your lib" suggestions to other commonly used ES2015 declarations
2019-02-05 18:31:16 -08:00
Daniel Rosenwasser
341f9cf1d6
Added test.
2019-02-05 18:01:41 -08:00
Ryan Cavanaugh
eed9db5ec5
Merge pull request #28465 from alangpierce/enforce-const-enum-access-for-isolatedmodules
...
Change isolatedModules to allow const enum declaration and disallow access
2019-02-05 16:36:58 -08:00
Anders Hejlsberg
7c096576bc
Merge pull request #29756 from Microsoft/fixStrictPropertyInitialization
...
Revert change to strict property initialization checks
2019-02-05 15:10:30 -08:00
Anders Hejlsberg
2d44a40202
Add regression test
2019-02-05 13:08:18 -08:00
Ryan Cavanaugh
1ec8a71949
Merge pull request #29711 from jack-williams/switch-on-unknown
...
Fix #29710 : Narrow unknown in switch
2019-02-05 09:08:52 -08:00
Anders Hejlsberg
bee9f1a5e7
Add regression tests
2019-02-04 17:48:53 -08:00
Ron Buckton
55762271af
Merge pull request #29695 from Microsoft/fixDtsTypeReferenceEmit
...
Fix type reference dts emit failure
2019-02-04 13:03:07 -08:00
Anders Hejlsberg
b7c5c073f8
Merge pull request #29714 from Microsoft/fixInstanceofTypeofControlFlow
...
Fix instanceof and typeof control flow
2019-02-04 12:22:52 -08:00
Ron Buckton
4756373967
Merge branch 'master' into fixDtsTypeReferenceEmit
2019-02-04 11:39:16 -08:00
Anders Hejlsberg
0c5471ba5c
Add regression test
2019-02-03 15:23:21 -08:00
Jack Williams
3d0c7f3156
Narrow unknown in switch
2019-02-03 16:07:21 +00:00
Anders Hejlsberg
332861b4fc
Add tests
2019-02-02 09:37:52 -08:00
Alan Pierce
942b020081
Merge remote-tracking branch 'origin/master' into enforce-const-enum-access-for-isolatedmodules
2019-02-01 18:52:22 -08:00
Ron Buckton
4b84f56b21
Fix type reference dts emit failure
2019-02-01 16:09:17 -08:00
Ryan Cavanaugh
a856a64a5c
Merge pull request #29446 from fuafa/infer-js-doc
...
fix quick fix infer parameter types from usage in js file
2019-02-01 13:55:31 -08:00
Ryan Cavanaugh
f81ea89564
Merge pull request #29136 from ajafff/usedbeforedeclaration-objectspread
...
property is used before its initialization: check more nodes
2019-02-01 13:46:37 -08:00
Anders Hejlsberg
607f2ea4de
Merge pull request #29478 from Microsoft/fixContextualReturnTypes
...
Infer contextual types from generic return types
2019-02-01 12:31:08 -08:00
Ryan Cavanaugh
9d3707d671
Merge pull request #29665 from ajafff/readonly-error-message
...
clarify error message for 'readonly' type operator
2019-02-01 11:24:38 -08:00
Anders Hejlsberg
8827bed0e7
Merge pull request #29647 from Microsoft/noConstraintsDuringInference
...
Only check constraints in final phase of type inference
2019-02-01 10:54:08 -08:00
Anders Hejlsberg
c58157573e
Add breaking change repros
2019-02-01 10:48:52 -08:00
Anders Hejlsberg
fffd77457a
Merge branch 'master' into fixContextualReturnTypes
...
# Conflicts:
# src/compiler/checker.ts
2019-02-01 10:28:50 -08:00
Klaus Meinhardt
782622f9cd
clarify error message for 'readonly' type operator
2019-01-31 19:44:49 +01:00
Klaus Meinhardt
f4747f4667
Merge branch 'master' of github.com:Microsoft/TypeScript into add-to-types2
2019-01-31 11:25:01 +01:00
Ryan Cavanaugh
aad609c74f
Merge pull request #29298 from ajafff/this-reference-in-parameter
...
Allow referencing 'this' in parameters of functions in the constructor
2019-01-30 19:13:18 -08:00
Anders Hejlsberg
96706a75ed
Merge pull request #29510 from Microsoft/constContexts
...
Const contexts for literal expressions
2019-01-30 15:55:47 -08:00
Anders Hejlsberg
eb513a2035
Merge pull request #29576 from Microsoft/fixContextuallyTypedParameters
...
Fix inference for contextually typed parameters with initializers
2019-01-30 15:51:29 -08:00
Anders Hejlsberg
caa89cafde
Add regression test
2019-01-30 08:45:43 -08:00
Ryan Cavanaugh
0df89cc96f
Merge pull request #26941 from jack-williams/narrow-unknown-with-triple-equals
...
Fix #25172 : Add narrowing for `unknown` with triple equals
2019-01-29 16:43:50 -08:00