Commit Graph

12444 Commits

Author SHA1 Message Date
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 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 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 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 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 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
Jason Ramsay ae2b7c2aa2 Removing cachePath from discoverTypings and DiscoverTypingsInfo.
With the move to using the packageNameToLocation map it is no longer required.
2016-03-03 15:17:52 -08:00
Mohamed Hegazy 0cba37d5b2 Merge pull request #7358 from martine/empty-return
in noImplicitReturns mode, also disallow "return;"
2016-03-03 13:56:19 -08:00
Vladimir Matveev 744e51047e Merge pull request #7373 from Microsoft/limitInferenceDepth
set the maximum depth to explore during type inference
2016-03-03 12:18:49 -08:00
Evan Martin 5132ea64ea in noImplicitReturns mode, also disallow "return;"
In --noImplicitReturns mode, if a function specifies a return type,
disallow empty "return;" statements.

Fixes #5916.
2016-03-03 12:18:23 -08:00
Anders Hejlsberg ea4b13bdf9 Allow 'null' and 'undefined' as type names 2016-03-03 11:18:12 -08:00
Vladimir Matveev 1589e4f57e set the maximum depth to explore during type inference 2016-03-03 10:47:21 -08:00
Mohamed Hegazy 30a6a33259 Fix #7362: check for --watchFile in tsconfig.json as well as on the commandline 2016-03-03 10:18:33 -08:00
Tingan Ho 194927e51b Update with master 2016-03-03 13:58:20 +08:00
Tingan Ho 99edce09bc Fixes CR feedback 2016-03-03 13:29:00 +08:00
Kanchalai Tanglertsampan 70d267419b Concat declaration error so we report them 2016-03-02 17:13:51 -08:00
Ron Buckton c267691d8a Fixed labels 2016-03-02 16:55:25 -08:00
Anders Hejlsberg 33e3825beb Assigned-before-use checking for non-nullable variables 2016-03-02 16:40:16 -08:00
Ron Buckton aaf3ab7406 Merge branch 'transforms-transformer-module' into transforms-transformer-es6-generators 2016-03-02 15:50:56 -08:00