Titian Cernicova-Dragomir
bc07eec015
Added tests for new error messages on calls to unions.
2019-06-28 23:23:17 +03:00
Titian Cernicova-Dragomir
768318b30c
Improved error message for calling/constructing types
2019-06-28 23:23:16 +03:00
Sheetal Nandi
b32afb55d1
Merge pull request #31985 from microsoft/buildInfoData
...
Make paths in tsbuildinfo file to be relative to the file
2019-06-27 12:49:52 -07:00
Nathan Shively-Sanders
8454ef114d
JSDoc:Treat tokens between backticks as comments
...
even `@`, which would otherwise start a new tag.
2019-06-26 16:04:46 -07:00
Klaus Meinhardt
392d775095
allow const-assertion on aliased enum symbol ( #32110 )
...
Fixes : #32087
2019-06-26 14:42:06 -07:00
Andrew Branch
871bdeeec4
Merge pull request #31480 from andrewbranch/bug/25487
...
Fix invalid JSXExpressions having identifier-ish things in their trivia, improve error messages for comma expressions in JSX
2019-06-26 10:13:42 -07:00
Wesley Wigham
34eb5ddf75
Fix tuple and array comparisons during identity checking ( #32089 )
2019-06-25 20:56:41 -07:00
Andrew Branch
6717d8d928
Merge pull request #31942 from andrewbranch/bug/30882
...
Improve error message on indexed access to private members of type parameters
2019-06-24 09:22:21 -07:00
Anders Hejlsberg
7cdc65b2a5
Out of bounds tuple elements have type 'undefined'
2019-06-21 18:00:26 -10:00
Daniel Rosenwasser
2c458c0d1c
Merge pull request #31414 from dhruvrajvanshi/master
...
Report error on method name for chained method calls
2019-06-21 17:51:04 -07:00
Wesley Wigham
1cbace6eee
Remove secondary reference lookup implementation ( #32016 )
...
* Remove secondary reference lookup implementation
* Remove TODO
2019-06-21 13:26:29 -07:00
Sheetal Nandi
179e0a606a
Merge pull request #32027 from microsoft/containerReference
...
Container only ref needs to be ignored from uptodate status
2019-06-21 11:28:45 -07:00
Wesley Wigham
37b20f6afd
Eliminate references to defunct LSHost in comments ( #32018 )
2019-06-20 19:11:46 -07:00
Wesley Wigham
a97c18f227
Ignore identifier declarations when calculating symbol visibility ( #31974 )
2019-06-20 17:20:12 -07:00
Sheetal Nandi
0e5d95feef
Container only ref needs to be ignored from uptodate status
...
Fixes #31288
2019-06-20 16:09:35 -07:00
Wesley Wigham
f2735b5a06
Fake up a namespace enclosing declaration when generating expando namespace members ( #31971 )
...
* Fake up a namespace enclosing declaration when generating expando namespace members
* Fix #31676
2019-06-20 12:58:16 -07:00
Sheetal Nandi
d36099c98d
Use absolute paths for buildInfoDirectory
2019-06-20 12:55:02 -07:00
Sheetal Nandi
36df28d800
Merge pull request #31986 from microsoft/buildLocale
...
Support --locale with --build
2019-06-20 12:25:37 -07:00
Sheetal Nandi
796d5bb660
Merge pull request #31954 from suhasdeshpande/patch-1
...
fix tsserver picking hidden files created by emacs
2019-06-20 12:23:18 -07:00
Anders Hejlsberg
6def72b3a4
Merge pull request #31950 from microsoft/unionObjectAndArrayLiterals
...
Union inferences from object and array literals
2019-06-20 09:36:20 -07:00
Sheetal Nandi
06d188a255
Support --locale with --build
...
Fixes #31960
2019-06-19 15:38:05 -07:00
Sheetal Nandi
b9fc44ece7
Bundle info paths as relative to tsbuildinfo file
2019-06-19 14:49:13 -07:00
Sheetal Nandi
9446fc0c0c
Convert options to relative paths
2019-06-19 12:54:22 -07:00
Sheetal Nandi
d760cbb74b
Make any paths in buildInfoFile to be relative to it.
2019-06-19 12:54:21 -07:00
Suhas
13b7af6ea0
fix tsserver picking hidden files created by emacs
...
Saw this good for first timers. I followed what @sheetalkamat suggested.
#31916
2019-06-18 22:50:48 -07:00
Josh Goldberg
ca00b3248b
Added --noImplicitThis code fix for functions used as object properties ( #31138 )
...
* Added --noImplicitThis code fix for functions used as object properties
Before trying out all the various possibilities for where these functions could be used, I figured I'd start out with a relatively simple use case to verify this is the right approach. Is it? 😄
Starts on #28964 .
* Fixed function expression names; included new baselines
* Got JSDocs to work, hooray!
* Added test for 'any' case of no function uses
* Refactored for inferFunctionReferencesFromUsage
* Fixed inference bug: undefined references cause parameters to default
* Removed dead code comments
2019-06-17 19:00:15 -07:00
Andrew Branch
04fbd93bf8
Revert previous fix and improve error message instead
2019-06-17 15:21:21 -07:00
Ron Buckton
179381301e
Move class property transform ( #31848 )
...
* Revert "Revert "Move class property transformation into new transformer. (#30467 )""
This reverts commit 53467ae4a4 .
* Fix emit issues
2019-06-17 14:26:42 -07:00
Anders Hejlsberg
32584249b2
Union array literals in inference similar to object literals
2019-06-17 08:37:33 -10:00
Andrew Branch
48f74fdf80
Consider non-public literal members in index type of constrained type parameters
2019-06-14 17:29:39 -07:00
Wesley Wigham
74c6bc1f85
Filter primitives from union when checking for mismatched excess props if nonprimitive type is present ( #31708 )
...
* Filter primitives from union when checking for mismatched excess props if nonprimitive type is present
* Use maybeTypeOfKind
2019-06-12 17:31:57 -07:00
Sheetal Nandi
a0d164f142
Merge pull request #31820 from microsoft/nodeModules
...
When resolving from typings cache, handle node code modules
2019-06-12 10:55:26 -07:00
Sheetal Nandi
520f7e8067
Merge pull request #31818 from microsoft/sharepointIssue
...
Do not watch tsconfig files from folders that we canot watch (because they are at roots we want to ignore)
2019-06-12 10:47:17 -07:00
Ron Buckton
375487ec60
Add __spreadArrays helper ( #31166 )
2019-06-11 14:15:57 -07:00
Anders Hejlsberg
ad322a561a
Merge pull request #31838 from microsoft/emptyIntersectionReduction
...
Empty intersection reduction
2019-06-11 12:25:51 -07:00
Anders Hejlsberg
3a1fb1bea6
Properly preserve CheckFlags.Readonly when widening properties
2019-06-11 09:25:00 -07:00
Daniel Rosenwasser
a7a0c3300d
Improve ts6307 error ( #31706 )
...
Improve ts6307 error
2019-06-10 15:17:49 -07:00
Anders Hejlsberg
d2397e0380
Fix minor issue
2019-06-09 10:05:55 -07:00
Anders Hejlsberg
d4c9f24577
Intersections of disjoint types become never upon construction
2019-06-09 07:46:13 -07:00
Sheetal Nandi
2fd80b3142
When resolving from typings cache, handle node code modules
...
Fixes #29865
2019-06-07 16:21:39 -07:00
Sheetal Nandi
a6c72a0cf3
Do not watch tsconfig files from folders that we canot watch
...
Fixes #30818
2019-06-07 12:10:21 -07:00
Anders Hejlsberg
4856768212
Merge branch 'master' into wideningInAccessExpressions
2019-06-07 11:52:24 -07:00
Anders Hejlsberg
69706bd064
Merge branch 'master' into wideningInAccessExpressions
2019-06-07 10:54:39 -07:00
Andrew Branch
53467ae4a4
Revert "Move class property transformation into new transformer. ( #30467 )"
...
This reverts commit 3139cf2f85 .
2019-06-06 17:40:02 -07:00
Anders Hejlsberg
4ae3a54ba6
Merge pull request #31784 from microsoft/numericEnumMappedType
...
Numeric enums as key types in mapped types
2019-06-06 15:00:19 -07:00
Anders Hejlsberg
ddc742c40c
Minor fix
2019-06-06 13:33:18 -07:00
Anders Hejlsberg
13557299e9
Consistent widening in property and element access expressions
2019-06-06 12:45:56 -07:00
Joey Watts
3139cf2f85
Move class property transformation into new transformer. ( #30467 )
...
Signed-off-by: Joseph Watts <jwatts43@bloomberg.net >
2019-06-05 22:24:25 -07:00
Anders Hejlsberg
5ad46b180b
Fix minor issue
2019-06-05 16:53:42 -07:00
Anders Hejlsberg
2e99438edc
Handle numeric enums in mapped types + fix obscure crash
2019-06-05 14:57:18 -07:00