Nathan Shively-Sanders
f9a05a1f9d
Re-enable weak type check for intersection props
...
Previously, intersections disabled the weak type check for their
constituents, and all properties (recursively) of their constituents.
Also add test for this case.
2017-05-26 13:39:53 -07:00
Nathan Shively-Sanders
548f92ad34
Weak types must not have call or construct sigs
...
This changes the definition of weak types
2017-05-26 10:19:20 -07:00
Nathan Shively-Sanders
c9da70560f
Update tests
...
1. Accept baselines
2. Fix APISample_watcher
3. Switch checker to use JSDOc for isWeak
Some of the baselines seem incorrect or weirder than before.
2017-05-23 14:35:05 -07:00
Nathan Shively-Sanders
49d4acaef6
Merge branch 'master' into weakType
2017-05-23 13:29:45 -07:00
Nathan Shively-Sanders
396071be9c
Detect weak type correctly for intersection types
...
Plus add an intersection test case.
2017-05-23 13:28:48 -07:00
Yui
e4aa515191
[Master] Fix 15179 missing comment in switch case clause ( #16033 )
...
* Fix emit comments after switch case clause
* Update baselines
* Add new tests and baselines
2017-05-23 10:24:46 -07:00
Andy Hanson
3690926e62
In path mapping module resolution, try loading from path as directory even if it has an extension
2017-05-23 08:11:42 -07:00
Nathan Shively-Sanders
c583c326da
Merge branch 'master' into weakType
2017-05-22 16:16:42 -07:00
Nathan Shively-Sanders
bc914c02e6
Merge pull request #15932 from Microsoft/decl-emit-class-expr-as-type-literal
...
Declaration-emit class expressions as type literals
2017-05-22 15:46:38 -07:00
Nathan Shively-Sanders
ecaf44d474
Add more tests and update baselines
2017-05-22 14:57:56 -07:00
Andy
bba8e74496
Fix path in importDeclTypes.ts test ( #15992 )
2017-05-22 10:25:40 -07:00
Nathan Shively-Sanders
a0fa8ae6c4
Address most PR comments
...
I am still working on the error for class expressions that extend from a
non-exported base.
2017-05-22 10:18:31 -07:00
Andy
24d98f2295
Merge pull request #15856 from Microsoft/jsdoc
...
Support for JSDoc in services
2017-05-22 07:46:52 -07:00
Andy
616edae4af
Merge pull request #15954 from Microsoft/typeArgs
...
Unconditionally compute type arguments of class base type
2017-05-19 10:36:39 -07:00
Noel Varanda
4cd20b1335
Fix #15540 : Throw error when importing @types ( #15866 )
...
* Fix #15540 : Throw error when importing @types
Fix issue: #15540
- Modify checker; external imports to account for imported modules
containing '@types/'.
- Add diagnostic message.
- Add test case
* FIX-15540: Review changes
- Replace `substr` with `startsWith`
- move diagnostics message to more relevant place
- Add `removePrefix` helper function
2017-05-19 09:38:04 -07:00
Andy Hanson
ce1e0097f0
Unconditionally compute type arguments of class base type
2017-05-19 08:56:56 -07:00
Nathan Shively-Sanders
beba5de9df
Merge branch 'master' into weakType
...
It's probably fine!
2017-05-19 08:54:25 -07:00
Andy Hanson
ba884bc27b
Merge branch 'master' into jsdoc
2017-05-19 08:14:52 -07:00
Nathan Shively-Sanders
e77024915e
Test:decl emit for class expressions as type lits
...
Add test and update baselines
2017-05-18 09:11:26 -07:00
Nathan Shively-Sanders
86661b5272
Merge pull request #13900 from Microsoft/object-literal-freshness-with-spread
...
Object literal freshness errors with spreads
2017-05-17 11:44:25 -07:00
Andy Hanson
76955ce792
Expand tests that jsdoc does not affect typescript code
2017-05-17 07:27:08 -07:00
Arthur Ozga
bba41a8a0c
avoid ascii escaping literal text
2017-05-15 18:42:49 -07:00
Ron Buckton
3521b9c546
if a JSSpecialPropertyDeclaration has a JSDoc type, use it
2017-05-11 16:23:05 -07:00
Nathan Shively-Sanders
7803c1ce17
Test:reference ambient block scoped vars in different file
2017-05-11 11:38:26 -07:00
Andy
066bb16173
Merge pull request #15539 from Microsoft/isolated-modules_export-star
...
Never elide an `export *` when `--isolatedModules` is set
2017-05-10 17:59:08 -07:00
Andy
2ba89fc534
Merge pull request #15538 from Microsoft/isolated-modules_re-export-type
...
Don't allow to re-export a type when '--isolatedModules' is set
2017-05-10 17:58:49 -07:00
Nathan Shively-Sanders
2f0e34149d
Merge pull request #15740 from Microsoft/emit-expression-in-extends-nested
...
Correctly emit expression in extends in namespace
2017-05-10 12:41:11 -07:00
Nathan Shively-Sanders
cf2c88c398
Test: no declare in declaration tmp in namespace
2017-05-10 11:48:32 -07:00
Herrington Darkholme
1bbc94fc67
fix #15666 : mark file as optional in Diagnostic
2017-05-10 12:29:53 +08:00
Mohamed Hegazy
a2dec0d03d
Fix #15062 : report errors for parameter properties in private constructors
2017-05-09 12:03:08 -07:00
Nathan Shively-Sanders
370b5618a0
Merge branch 'master' into spelling-correction
2017-05-09 10:01:03 -07:00
Nathan Shively-Sanders
2e9143aaf0
Clean up test a little
2017-05-08 11:36:30 -07:00
Nathan Shively-Sanders
5ad2ced0c3
Update test with trickier case from #15616
2017-05-08 11:03:41 -07:00
Anders Hejlsberg
c39a683504
Merge pull request #15576 from Microsoft/typeVariableTypeGuards
...
Improve type guards for type variables
2017-05-07 10:52:29 -07:00
Ron Buckton
ada4b3d4d8
Fix var emit order for converted loops
2017-05-05 17:38:23 -07:00
Sheetal Nandi
96aca4c7d0
Merge pull request #13540 from Microsoft/metadataReferences
...
Mark as referenced aliases in Union that will get emitted as part of decorator metadata
2017-05-04 15:04:13 -07:00
Andy
7fe1aba82a
Merge pull request #15557 from Microsoft/unused-type-parameter
...
Mark type arguments as used even if used in an invalid way
2017-05-04 14:15:16 -07:00
Ron Buckton
500dd16bc1
Merge pull request #15590 from Microsoft/fix15471
...
Add check for tslib __await helper
2017-05-04 13:59:54 -07:00
Ron Buckton
cbeb11eabf
Add check for tslib __await helper
2017-05-04 13:13:10 -07:00
Anders Hejlsberg
a6dfd66fc1
Update tests
2017-05-04 10:20:13 -07:00
Nathan Shively-Sanders
3e85ac0627
Test:index constraint check on js class expression
2017-05-04 10:12:49 -07:00
Anders Hejlsberg
238067eb3b
Add tests
2017-05-03 21:28:17 -07:00
Nathan Shively-Sanders
9eaf40bded
Merge branch 'master' into spelling-correction
2017-05-03 15:34:32 -07:00
Nathan Shively-Sanders
4877343538
Reduce max number of spelling suggestions to 10
2017-05-03 10:10:13 -07:00
Andy Hanson
ac7429535e
Mark type arguments as used even if used in an invalid way
2017-05-03 09:10:49 -07:00
Andy Hanson
e696bbcd22
Never elide an export * when --isolatedModules is set
2017-05-02 14:13:42 -07:00
Andy Hanson
241f54edc7
Don't allow to re-export a type when '--isolatedModules' is set
2017-05-02 14:05:05 -07:00
Vladimir Kurchatkin
d45d289f36
Allow indexed access to empty property
...
Fixes: https://github.com/Microsoft/TypeScript/issues/15209
2017-05-02 01:39:02 +03:00
Nathan Shively-Sanders
ca7d7f5946
Only 100 spelling corrections for unknown symbols
...
If your compilation has more than 100 unknown symbols, the problem is
missing declarations, not typos.
2017-05-01 12:58:42 -07:00
Ron Buckton
1d1ebd0d70
Do not rename references to class inside of the class body function
2017-04-25 13:30:07 -07:00