Commit Graph

19046 Commits

Author SHA1 Message Date
Ryan Cavanaugh ac147b18a6 Merge pull request #7442 from Victorystick/fix-property-shorthand-emit
Fix shorthand properties for non-es6 module formats
2016-03-09 10:30:58 -08:00
Ryan Cavanaugh 2875326735 Use existing function to resolve export= declarations 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh 3d948be4c6 Support module augmentation 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh 132d75c267 Support UMD when targeted module uses export = 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh 34cf10542c Lint 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh 887adb0146 Move checks from checker to binder 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh e9f4bef3ac Address CR feedback 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh 44aa7388ea UMD support 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh b29f460641 Merge pull request #7449 from RyanCavanaugh/port6993fix
Fix duplicate errors in JSDoc function types with anon parameters
2016-03-09 09:57:11 -08:00
Oskar Segersvärd 2e23010437 Add three tests 2016-03-09 18:43:21 +01:00
Ryan Cavanaugh 5dbf252dc5 Fix duplicate errors in JSDoc function types with anon parameters
Fixes #6993
2016-03-09 09:18:54 -08:00
Anders Hejlsberg bf97250306 Skip unnecessary instatiation of anonymous types 2016-03-09 09:14:55 -08:00
Oskar Segersvärd ccd5352eb8 System doesn't have direct identifier access in TS's generated code. 2016-03-09 12:13:27 +01:00
Oskar Segersvärd d742ca50f4 Fix shorthand properties for non-es6 module formats 2016-03-09 11:22:47 +01:00
Mohamed Hegazy cc57ae0205 Merge pull request #7439 from Microsoft/moduleAugmentationWithExportEquals
Handel module augmentation with export= var + uninstantiated module
2016-03-08 21:22:28 -08:00
Mohamed Hegazy 7acf58ba52 Handel module augmentation with export= var + uninstantiated module 2016-03-08 17:16:19 -08:00
Nathan Shively-Sanders 482acccada Union this-types of unioned call signatures
And and tests and baselines
2016-03-08 13:05:00 -08:00
Anders Hejlsberg 868e53df25 Accepting new baselines 2016-03-08 11:47:18 -08:00
Anders Hejlsberg fbda0bdd94 Adding another check for undefined 2016-03-08 11:46:47 -08:00
Ron Buckton d89e21aecd General fixes and cleanup 2016-03-07 16:48:40 -08:00
Anders Hejlsberg 187eaaee7f Fix issue with narrowing exported variables 2016-03-07 13:20:07 -08:00
Daniel Rosenwasser 01c329c05e Merge pull request #7396 from mattmccutchen/issue7359
Expose ts.isExternalModule as public API.
2016-03-07 10:15:06 -08:00
Anders Hejlsberg 0a25bb58a4 Make 'undefined' assignable to 'void' 2016-03-06 13:59:09 -08:00
Anders Hejlsberg 50d874e09d Improve type relationship error reporting for nullable types 2016-03-05 16:55:54 -08:00
Anders Hejlsberg 129a4f1908 Check return type includes 'undefined' in function with implicit return 2016-03-05 16:16:19 -08:00
Anders Hejlsberg d0e4b4ae35 Treat 'return' as 'return undefined' for type checking purposes 2016-03-05 15:23:00 -08:00
Anders Hejlsberg 8db7af035d Proper handling of 'null' and 'undefined' in equals and not equals guards 2016-03-05 11:16:31 -08:00
Anders Hejlsberg 689e28d3ac Keep linter happy with fix in reduceLeft/reduceRight 2016-03-05 11:14:57 -08:00
Anders Hejlsberg 097f4564bb Remove unused variable 2016-03-05 10:07:28 -08:00
Anders Hejlsberg 2762772afd Include 'undefined' in return type for implicit or expressionless returns 2016-03-05 09:58:47 -08:00
Anders Hejlsberg eed4093be5 Fix bugs in reduceLeft and reduceRight 2016-03-05 09:56:01 -08:00
Anders Hejlsberg a0790fba7d Add only 'undefined' to optional parameter types 2016-03-04 17:39:56 -08:00
Anders Hejlsberg 436e70ea8f Accepting new baselines 2016-03-04 17:27:42 -08:00
Anders Hejlsberg 64f572747c Introduce comparable (a.k.a. possibly assignable) relation 2016-03-04 17:26:56 -08:00
Anders Hejlsberg 25a72d6085 Removing unused functions 2016-03-04 15:51:22 -08:00
Matt McCutchen 49172207bf Expose ts.isExternalModule as public API.
Fixes #7359
2016-03-04 18:45:42 -05:00
Mohamed Hegazy a5354608fc Merge pull request #7392 from Microsoft/declarationEmitFixes
Declaration emit fixes
2016-03-04 15:35:43 -08:00
Anders Hejlsberg 15b240548f Extract and lift nullability over best common supertype 2016-03-04 15:01:11 -08:00
Mohamed Hegazy 15640492c4 Code review comments 2016-03-04 14:21:31 -08:00
Anders Hejlsberg d6fcd1af1b Consider for-in and for-of variables to be definitely assigned 2016-03-04 13:19:58 -08:00
Anders Hejlsberg 1302418776 Accepting new baselines 2016-03-04 10:43:10 -08:00
Anders Hejlsberg c623e1f8c9 No widening of 'null' and 'undefined' types in --strictNullChecks mode 2016-03-04 10:42:23 -08:00
Mohamed Hegazy 15f07e6231 Fix #4506: Remove assert to allow for invalid patterns already flagged erlier by the checker 2016-03-03 23:01:46 -08:00
Mohamed Hegazy 3bb2c57264 Fix #3810: Handel expressions in extends clauses 2016-03-03 22:35:30 -08:00
Mohamed Hegazy c98c763243 Fix #5651: Get the correct meaning for expressions in extends clauses 2016-03-03 21:47:11 -08:00
Anders Hejlsberg 87ae0489eb Reinstate separate type kinds for 'null' and 'undefined' 2016-03-03 17:44:46 -08:00
Ron Buckton 1cf183b09a Fixed invalid assertion in ts transformer 2016-03-03 17:35:27 -08:00
Ryan Cavanaugh 311f8dd7d3 Merge pull request #7309 from RyanCavanaugh/fix6878
Support JSDoc on class / obj. literal getters
2016-03-03 15:50:15 -08:00
Mohamed Hegazy baa040115e Fix #7173: Widen the type do the defualt export expression before writing it out. 2016-03-03 15:42:47 -08:00
jramsay fcfc411200 Merge pull request #7383 from Microsoft/removeCachePathFromDiscoverTypings
Removing cachePath from discoverTypings and DiscoverTypingsInfo.
2016-03-03 15:41:45 -08:00