2040 Commits

Author SHA1 Message Date
Mohamed Hegazy
5ef6192c20 Allow export default interface. Related to issue 3792. (#16040)
* Allow export default interface. Related to issue 3792.

* Update exportDefaultAbstractClass test

* Allow default export to be a non-value for lookup purposes

* Add local usage to exportDefaultInterface test
2017-05-23 13:40:03 -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
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
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
Nathan Shively-Sanders
c6bf6a20a9 Merge pull request #15357 from Microsoft/es2015-transform-accessors-containing-captured-this
es2015 transform covers accessors that contain captured this
2017-04-25 08:36:53 -07:00
Nathan Shively-Sanders
a94198eb37 Test contextual type of object spread expressions
And update baselines.
2017-04-24 15:44:07 -07:00
Nathan Shively-Sanders
00848fc46f Test ES2015 transform of accessors w/captured this 2017-04-24 14:48:25 -07:00
Anders Hejlsberg
85d4593033 Add regression test 2017-04-22 17:09:20 -07:00
Mohamed Hegazy
24814ec387 Merge pull request #15260 from Microsoft/Fix15200
Fix #15200: Query for semantic errors on .js files with '@ts-check' with no config file
2017-04-20 13:46:52 -07:00
Ron Buckton
6c176138ca Fix loop block scope binding in generator 2017-04-19 17:06:12 -07:00