Anders Hejlsberg
3cda0eac32
Update tests
2017-04-10 17:14:22 -10:00
Anders Hejlsberg
ec35b800e3
Allow callbacks unioned with null and/or undefined
2017-04-10 17:14:11 -10:00
Ryan Cavanaugh
2b3c2b3448
Add tests, comments, and min.js exclusion
2017-04-10 16:00:15 -07:00
Anders Hejlsberg
510bc81967
Add another test case
2017-04-10 07:33:08 -10:00
Anders Hejlsberg
33bc9d1616
Accept new baselines
2017-04-10 07:22:20 -10:00
Anders Hejlsberg
189fc51579
Check callback return values bi-variantly
2017-04-10 07:22:10 -10:00
Ryan Cavanaugh
2ca90b7eb6
Merge pull request #14999 from RyanCavanaugh/typesMap
...
Add advanced safelist for exclusions
2017-04-10 10:20:50 -07:00
Andy Hanson
e9f95e2296
Only trace if traceEnabled
2017-04-10 09:06:26 -07:00
Anders Hejlsberg
50f84b12a2
Add tests
2017-04-08 14:19:25 -07:00
Anders Hejlsberg
11543d7369
Accept new baselines
2017-04-08 14:03:17 -07:00
Anders Hejlsberg
eebd67f8d5
Fix callback types to match covariantly
2017-04-08 12:54:01 -07:00
Anders Hejlsberg
8ae3e05075
Treat callback parameters as strictly covariant
2017-04-08 12:53:01 -07:00
Ryan Cavanaugh
a874567d46
Remove tsserver command for loading different map
2017-04-07 16:58:32 -07:00
Ryan Cavanaugh
2b09e54baa
Remove bad merge + unused cmd name
2017-04-07 16:58:21 -07:00
Ryan Cavanaugh
fc988a16ee
Pass correct regex flag
2017-04-07 16:58:13 -07:00
Kanchalai Tanglertsampan
b3846bfe65
Wip - type checking JSX children
2017-04-07 16:41:29 -07:00
Andy Hanson
e73fffd964
Lint custom lint rules
2017-04-07 13:17:50 -07:00
Andy Hanson
7320891933
boolean-trivia lint rule: Lint for null/undefined too
2017-04-07 13:13:39 -07:00
Ryan Cavanaugh
47cf7caf6e
Fix path escaping and slash normalization
2017-04-07 12:49:46 -07:00
Nathan Shively-Sanders
1671a06655
Test: object literal assignments->expanding arrays
...
Previously, the compiler would run out of memory for more than 13 or 14
of these assignments.
2017-04-07 11:14:16 -07:00
Nathan Shively-Sanders
5c2091ad33
Evolving array element ignores contextual type
...
Control flow analysis can easily hit circularities or exponential
behaviour when requesting the contextual type of an expression. When
adding an element type to an evolving array type, there is no point in
checking the contextual type of the new element type because it is
unknown -- it is exactly the type of the evolving array, which is
in the middle of being found.
Fixes #14628
This is code of the form:
```ts
let x = []
x[0] = { contextual: 'no' }
x[1] = { contextual: 'should not check' }
x[2] = { contextual: 'contextual type' }
// :
// :
```
2017-04-07 11:10:16 -07:00
Ryan Cavanaugh
439f1c77bd
Fix regex for real this time
2017-04-06 13:19:22 -07:00
Anders Hejlsberg
69c30a0126
Add regression tests
2017-04-06 12:57:03 -07:00
Ryan Cavanaugh
857b762edd
Fixes
2017-04-06 12:50:22 -07:00
Anders Hejlsberg
ffab267389
Fix excess property check with empty target object type
2017-04-06 12:46:59 -07:00
Ryan Cavanaugh
c164730a01
Add Kendo; fix Office
2017-04-06 12:39:25 -07:00
Nathan Shively-Sanders
3029b8fe38
Merge pull request #14935 from Microsoft/allow-extending-from-any
...
Allow extending from any
2017-04-06 09:18:01 -07:00
Kanchalai Tanglertsampan
2b96374a18
fix no-bom linting rule
2017-04-06 09:17:29 -07:00
Nathan Shively-Sanders
f635042255
Improve test and comments
...
Test asserts that unused locals error works for untyped modules.
Comment no longer claims to check for untyped modules.
2017-04-06 09:02:18 -07:00
Kanchalai Tanglertsampan
d1d5cac900
Address PR: Remove duplication
2017-04-06 09:01:20 -07:00
Andy Hanson
8ec593aec2
Support @types module resolution from scoped packages
2017-04-06 08:05:30 -07:00
Yuichi Nukiyama
8b24189aee
Fix Headers interface
2017-04-06 23:29:36 +09:00
Nathan Shively-Sanders
90d5c299b0
Remove special symbol for untyped modules
...
Extending symbols from untyped modules is no longer an error, so #12532
didn't get us anything except slightly better quick info.
2017-04-05 16:01:04 -07:00
Nathan Shively-Sanders
441e54ce00
Update comment
2017-04-05 15:49:34 -07:00
Andy Hanson
4a3b38b274
Refactor how we (internally) expose JS module resolution
...
Also, provide a useful error if resolution fails.
2017-04-05 15:33:01 -07:00
Nathan Shively-Sanders
7e3c0337cf
Unknown bases return baseConstructorType, not anyType
...
Returns several baselines to their original states.
2017-04-05 14:51:50 -07:00
Nathan Shively-Sanders
75f1774cb4
A few changes requested by review comments
2017-04-05 14:41:11 -07:00
Nathan Shively-Sanders
7f6c49e23b
Check TypeFlags.Any instead of anyType&unknownType
2017-04-05 14:09:12 -07:00
Anders Hejlsberg
dce7fca83d
Merge pull request #15033 from Microsoft/emptyObjectIntersection
...
Remove empty object types from intersection types
2017-04-05 14:04:16 -07:00
Kanchalai Tanglertsampan
04c71f0971
Include dom into default library files
2017-04-05 13:48:35 -07:00
Nathan Shively-Sanders
6879bc1ea1
Test that spread removes readonly from properties
2017-04-05 13:45:51 -07:00
Andy
bb8862fd09
Merge pull request #14996 from Microsoft/args
...
Rename local variable `arguments` to `args`
2017-04-05 13:45:51 -07:00
Nathan Shively-Sanders
1fc45d3d8b
Remove readonly from spread properties
...
Spreading an object now removes `readonly` from properties in the
resulting object.
2017-04-05 13:43:47 -07:00
Ryan Cavanaugh
125c012c8d
Lint
2017-04-05 13:14:18 -07:00
Ryan Cavanaugh
376cea648e
Allow resetting so tests pass
2017-04-05 13:14:17 -07:00
Ryan Cavanaugh
a4c2f78b75
Update tsserverProjectSystem.ts
2017-04-05 13:14:17 -07:00
Ryan Cavanaugh
54b1c34a44
Fix failing test
2017-04-05 13:14:16 -07:00
Ryan Cavanaugh
f3c5029def
Add tests and fix bugs
2017-04-05 13:14:16 -07:00
Nathan Shively-Sanders
e09533d19d
Update test comments to match property names
2017-04-05 13:08:21 -07:00
Yui
8941e5f7b0
Merge pull request #15006 from Microsoft/master-14895
...
[Master] Emit parenthesis around propert/element access expression of casted object literal expression
2017-04-05 13:03:24 -07:00