Commit graph

26546 commits

Author SHA1 Message Date
Anders Hejlsberg
b7c5c073f8
Merge pull request #29714 from Microsoft/fixInstanceofTypeofControlFlow
Fix instanceof and typeof control flow
2019-02-04 12:22:52 -08:00
Anders Hejlsberg
f86b635122
Merge pull request #29705 from Microsoft/fixParametersAndReturnType
Less restrictive Parameters<T> and ReturnType<T>
2019-02-04 12:08:29 -08:00
TypeScript Bot
530a09a6e2 Update user baselines (#29682) 2019-02-04 07:55:39 -08:00
Anders Hejlsberg
026225997e Accept new baselines 2019-02-03 15:23:49 -08:00
Anders Hejlsberg
0c5471ba5c Add regression test 2019-02-03 15:23:21 -08:00
Anders Hejlsberg
415c725bb9 Make exception for synthetic 'this.x' in narrowTypeByInstanceof 2019-02-03 15:23:07 -08:00
Anders Hejlsberg
dcfbe5a7a7 Merge branch 'master' into fixInstanceofTypeofControlFlow 2019-02-03 14:30:22 -08:00
Anders Hejlsberg
4d85acb387
Merge pull request #29712 from jack-williams/update-baseline-for-json-changes
Fix build break: Update baselines for types affected by JSON change
2019-02-03 14:29:00 -08:00
Jack Williams
30fa6d08cc Update baselines for types affected by JSON change 2019-02-03 16:49:52 +00:00
Anders Hejlsberg
343e0f7fd9 Fix NarrowTypeByTypeof, NarrowTypeByInstanceof, isPropertyInitializedInConstructor 2019-02-03 08:19:22 -08:00
Ryan Cavanaugh
0a041ee536
Merge pull request #28270 from AnyhowStep/json-parse-reviver-stringify-replacer-better-declaration
JSON.parse(), JSON.stringify() more specific declarations for #6955
2019-02-02 12:10:56 -08:00
Anders Hejlsberg
118a2ccad4 Accept new baselines 2019-02-02 09:37:59 -08:00
Anders Hejlsberg
332861b4fc Add tests 2019-02-02 09:37:52 -08:00
Anders Hejlsberg
be4fb30e61 Accept new baselines 2019-02-02 09:28:28 -08:00
Anders Hejlsberg
e7ad76ddc8 Less restrictive constraints in Parameters and ReturnType types 2019-02-02 09:28:21 -08:00
Ryan Cavanaugh
5bcf251f8a
Merge pull request #28125 from fullheightcoding/typos
Fixed some typos.
2019-02-01 16:48:13 -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
Ryan Cavanaugh
02b1f71612
Merge branch 'master' into typos 2019-02-01 13:43:44 -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
Andy Hanson
ed277b8ee9 Handle GetAccessor and SetAccessor in isThisless (#27869) 2019-02-01 10:50:04 -08:00
Anders Hejlsberg
42be36d182 Accept new baselines 2019-02-01 10:48:58 -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
Anders Hejlsberg
44fae8c29a
Merge pull request #29685 from Microsoft/fixSubtypeReductionEstimate
Increase accuracy of subtype reduction remaining work estimate
2019-02-01 10:25:02 -08:00
Anders Hejlsberg
84250e3888 Increase accuracy of remaining subtype reduction work estimate 2019-02-01 06:57:07 -08:00
Anders Hejlsberg
51ccfb1201 Accept new baselines 2019-01-31 15:33:00 -08:00
Anders Hejlsberg
2a91e7aab2 Revert previous changes, use flag to disable fixing during constraint check 2019-01-31 15:32:52 -08:00
TypeScript Bot
d2909a14aa Update user baselines (#29660) 2019-01-31 15:02:49 -08:00
Klaus Meinhardt
782622f9cd clarify error message for 'readonly' type operator 2019-01-31 19:44:49 +01:00
Ryan Cavanaugh
5d3685d041
Merge pull request #28240 from ajafff/add-to-types2
Only suggest adding to types if present in compilerOptions
2019-01-31 09:34:59 -08:00
Klaus Meinhardt
d72271b800 update baseline 2019-01-31 11:29:29 +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
Ryan Cavanaugh
caa8dc25a8
Merge pull request #29115 from KromDaniel/patch-1
Duplicate `wait` instead of `wait` and `notify` at `es2017.sharedmemory.d.ts`
2019-01-30 19:12:46 -08:00
Ryan Cavanaugh
2f7627b363
Merge pull request #28190 from ispedals/bug/24709
Support synthesized SourceFile parent in getOrCreateEmitNode (#24709)
2019-01-30 19:12:11 -08:00
Ryan Cavanaugh
ec9652d9d6
Merge pull request #27934 from mayn/spelling
fix spelling errors
2019-01-30 19:09:22 -08:00
Benjamin Lichtman
62cf44cb9b
Allow per-file setting for rename default behavior preferences (#29593)
<!--
Thank you for submitting a pull request!

Here's a checklist you might find useful.
* [ ] There is an associated issue that is labeled
  'Bug' or 'help wanted' or is in the Community milestone
* [ ] Code is up-to-date with the `master` branch
* [ ] You've successfully run `jake runtests` locally
* [ ] You've signed the CLA
* [ ] There are new or updated unit tests validating the change

Refer to CONTRIBUTING.MD for more details.
  https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
-->

Fixes #29585.
#29314 and #29385 made it so their respective settings are only recognized when provided to the host as a whole.
This PR makes it so that the relevant settings for the preferences on the file override those of the preferences on the host.
2019-01-30 19:08:30 -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
Ron Buckton
0ae73a5a9e
Merge pull request #29650 from Microsoft/gulpMinParallel
Make 'gulp min' build tsc/tsserver in parallel
2019-01-30 13:49:26 -08:00
Sheetal Nandi
26e546aeaa
Merge pull request #29626 from Microsoft/toLowerCase
Handle get from readFileCache correctly.
2019-01-30 13:10:40 -08:00
Sheetal Nandi
55b8e4fd29 Handle "" correctly when cacheing file text 2019-01-30 12:32:08 -08:00
Ron Buckton
1515374a2b Make 'gulp min' build tsc/tsserver in parallel 2019-01-30 11:36:30 -08:00
Anders Hejlsberg
390f20f4fc Accept new baselines 2019-01-30 08:45:51 -08:00
Anders Hejlsberg
caa89cafde Add regression test 2019-01-30 08:45:43 -08:00
TypeScript Bot
e4f3b23e06 Update user baselines (#29645) 2019-01-30 08:29:27 -08:00
Anders Hejlsberg
e0082f6bfc Accept new baselines 2019-01-30 06:43:28 -08:00