Alexander T
332c88e57d
PR feedback: change error #2497 message
2018-12-18 10:39:32 +02:00
Alexander
d4a534bfb5
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/28086
2018-12-18 08:52:37 +02:00
Alexander T
c70cd38e98
--downlevelIteration errors should mention using later targets
2018-12-18 08:50:31 +02:00
Daniel Rosenwasser
65b230e5ab
Merge pull request #29069 from weswigham/remove-duplicate-function
...
Remove duplicate function from checker
2018-12-17 16:48:14 -08:00
Anders Hejlsberg
c52e5985b7
Merge pull request #29068 from Microsoft/noGenericEmptyObject
...
Generic types should never be considered empty objects
2018-12-17 15:59:42 -08:00
Anders Hejlsberg
54b46d74b5
Address CR feedback, take two
2018-12-17 15:59:12 -08:00
Wesley Wigham
55852c495e
Remove duplicate function from checker
2018-12-17 15:52:32 -08:00
Anders Hejlsberg
109fcd5d43
Address CR feedback
2018-12-17 15:06:15 -08:00
Anders Hejlsberg
93c0f0ca0f
isEmptyObjectType should check that argument is not generic mapped type
2018-12-17 14:08:01 -08:00
Anders Hejlsberg
92f47a7a7b
Use synthetic access expressions for destructuring control flow analysis
2018-12-15 16:49:53 -08:00
Ali Sabzevari
1a5ecbb6ac
#28977 Change error message according to review comments
2018-12-14 23:42:59 +01:00
Ali Sabzevari
99c7fc4a88
#28977 Change const enum error message
2018-12-14 21:23:46 +01:00
Daniel Rosenwasser
4d74f67325
Merge pull request #28888 from Microsoft/numericPropertyAccess
...
Avoid adding a dot when comment a property acccess's expression has trailing comments
2018-12-13 15:18:27 -08:00
Anders Hejlsberg
43811dd16f
Use getIndexedAccessType when computing destructured types
2018-12-13 12:13:13 -08:00
Kerem
de4803658e
Disable truncation for codefixes in signatureToMethodDeclaration. ( #28188 )
2018-12-13 11:21:36 -08:00
Sheetal Nandi
f97a2b3f90
Add more tests that verify semantic diagnostics cache
2018-12-12 16:33:00 -08:00
Wesley Wigham
5788446aa1
Use contextual parameter types over binding pattern initializer types ( #28967 )
...
* Use contextual parameter types over binding pattern initializer types
* Remove unneeded check
2018-12-12 15:39:32 -08:00
Sheetal Nandi
7c92d09e23
When removing the errors for the exports from the file, apart from removing transitive exports, remove the diagnostics of file that import these exports
...
Fixes #28983
2018-12-12 15:23:51 -08:00
Anders Hejlsberg
fecbdb68bd
Merge pull request #28965 from Microsoft/simplifyIndexedAccess
...
Simplify indexed access types applied to mapped types
2018-12-11 17:56:03 -08:00
Daniel Rosenwasser
2999a1eb47
Merge remote-tracking branch 'origin/master' into numericPropertyAccess
2018-12-11 16:52:23 -08:00
Anders Hejlsberg
0dcaaa5c50
Simplify indexed accesses on mapped types with no depth limit
2018-12-11 15:11:57 -08:00
Daniel Rosenwasser
5ab24ed7e0
Merge pull request #28951 from Microsoft/fixLibToIterableAndES5
...
Only use 'es2015.iterable' to avoid accidental es2015 feature usage.
2018-12-11 13:29:39 -08:00
Anders Hejlsberg
44116b5241
Simplify indexed accesses on mapped types up to five levels deep
2018-12-11 12:11:07 -08:00
Philip Pesca
e6aa992095
Fix error message when type argument arity is wrong ( #28366 )
...
* Fix error message when type argument arity is wrong
* Parenthesize 's' in plurals
* Update baseline
* Update baseline
* Use old error message
* Revert parantheses
2018-12-11 09:54:38 -08:00
Daniel Rosenwasser
28c3663e62
Don't use 'fill' in 'fill'.
2018-12-10 21:20:32 -08:00
Daniel Rosenwasser
cc477ee891
Only use 'es2015.iterable' to avoid accidental es2015 feature usage.
2018-12-10 17:46:17 -08:00
Anders Hejlsberg
c5c4908ab6
Merge pull request #28948 from Microsoft/discriminatedUnionIndexSignature
...
Fix crash related to discriminated unions with index signatures
2018-12-10 17:16:30 -08:00
Daniel Rosenwasser
b99c60a68f
Merge pull request #28921 from ajafff/no-set
...
Avoid uses of ES6 Set, use Array instead
2018-12-10 17:15:19 -08:00
Daniel Rosenwasser
c77fcf217b
Merge pull request #28932 from j-oliveras/No-es2015-usages
...
Change es2015 usages to existing ts functions
2018-12-10 17:11:28 -08:00
Anders Hejlsberg
9479353d5c
Fix handling of index signatures in discriminated unions
2018-12-10 16:30:21 -08:00
Daniel Rosenwasser
bc59582c7d
Merge pull request #28627 from ajafff/arrow-arguments
...
ArrowFunction has no own 'arguments'
2018-12-10 11:42:43 -08:00
Daniel Rosenwasser
3e6a666b5e
Merge pull request #28919 from a-tarasyuk/feature/28893-allow-trailing-comma-on-tuple-types
...
feature/28893 allow trailing comma on tuple types
2018-12-10 11:33:33 -08:00
Anders Hejlsberg
cd6d2fdc18
Merge pull request #28940 from Microsoft/explicitUnknownConstraint
...
Type parameter constrained to 'unknown' not assignable to '{}'
2018-12-10 10:29:06 -08:00
Anders Hejlsberg
bb21cf5ca1
Merge pull request #28920 from Microsoft/improveBindTyping
...
Improve 'bind' typing in --strictBindCallApply mode
2018-12-10 10:28:37 -08:00
Anders Hejlsberg
a8964cbc60
Type parameter with 'unknown' constraint not assignable to '{}'
2018-12-10 08:59:12 -08:00
Jordi Oliveras Rovira
599a963493
Add newline
2018-12-09 20:42:46 +01:00
Jordi Oliveras Rovira
6a82b0a96b
Add newline, bad edit
2018-12-09 20:42:02 +01:00
Jordi Oliveras Rovira
4e43dcdc05
Change usages of String.prototype.endsWith to ts.endsWith.
2018-12-09 20:25:17 +01:00
Jordi Oliveras Rovira
3d23e7a0a4
Change usage of String.prototype.startsWith to ts.startsWith.
2018-12-09 20:24:48 +01:00
Jordi Oliveras Rovira
f41b4e088d
Change usage of Array.prototype.find to ts.find.
2018-12-09 20:23:56 +01:00
Klaus Meinhardt
67f037ccf4
Avoid uses of ES6 Set, use Array instead
...
Fixes : #28918
2018-12-08 22:34:47 +01:00
Anders Hejlsberg
201eec6230
Update fourslash list of global types
2018-12-08 11:20:31 -08:00
Anders Hejlsberg
992513791d
Fix findAllReferences for 'this' parameter declarations
2018-12-08 11:03:37 -08:00
Anders Hejlsberg
9cc997fca7
Improve typing of 'bind' method on function types
2018-12-08 11:02:19 -08:00
Alexander
94b3d1a2b5
Allow trailing comma on tuple types
2018-12-08 11:53:18 +02:00
Daniel Rosenwasser
c2898db9dd
Merge pull request #28612 from vvakame/feat-showConfig-error
...
show diagnostic when error occurred with --showConfig
2018-12-07 16:42:30 -08:00
Anders Hejlsberg
34d9d4bc8c
Merge pull request #28870 from Microsoft/discriminatedUnionInference
...
Improved type inference for discriminated unions
2018-12-07 15:44:41 -08:00
Sheetal Nandi
c156c9377a
Add note about comparing source positions
2018-12-07 08:56:22 -08:00
Josh Goldberg
773c50f05a
Better error message for invalid bigint literals ending with n
...
Helps with the cases of decimals and exponentials, though not with numbers incorrectly starting with `0`.
Fixes #28887 .
2018-12-07 00:40:13 -08:00
Daniel Rosenwasser
6fcc815aa8
Check if the expression had any trailing comments.
2018-12-06 18:06:59 -08:00