Commit Graph

18857 Commits

Author SHA1 Message Date
Jason Ramsay 5a9451ae23 Rename typingOptions.enableAutoDiscovery to typeAcquisition.enable 2016-11-18 18:14:32 -08:00
Ron Buckton 1980334328 Merge branch 'master' into asyncGenerators 2016-11-18 17:55:56 -08:00
Ron Buckton 38b7757e57 Tests for iterationMode=iterable 2016-11-18 17:55:06 -08:00
Yuichi Nukiyama 725dbc2add Merge branch 'master' into defult_export_error_message 2016-11-19 10:51:42 +09:00
Yuichi Nukiyama 4edf1b714a Merge remote-tracking branch 'tsupstream/master' 2016-11-19 10:49:52 +09:00
Ron Buckton 32bcc9749b Revert diagnostic error number change 2016-11-18 17:05:00 -08:00
Ron Buckton c72509b190 Added iterationMode switch, consolidate some tests, cleanup 2016-11-18 16:50:43 -08:00
Jason Ramsay 12971d2c65 Merge branch 'tsconfigMixedContentSupportRedux' into tsconfigMixedContentSupport 2016-11-18 16:18:19 -08:00
Jason Ramsay 464bc0e9e0 Merge branch 'master' into tsconfigMixedContentSupportRedux 2016-11-18 16:15:15 -08:00
Jason Ramsay 891173c9ed Merge branch 'master' into tsconfigMixedContentSupport 2016-11-18 16:07:50 -08:00
Nathan Shively-Sanders 71b28a024a Merge pull request #12310 from Microsoft/check-object-rest-destructuring-assignment
Check object rest destructuring assignment
2016-11-18 16:01:25 -08:00
Jason Ramsay 7dd30dbfd4 tsconfig.json mixed content support 2016-11-18 15:51:28 -08:00
Nathan Shively-Sanders 0c5429d3b7 Add missed jsDoc rename in services' Node implementation
Why would you implement an interface using a *class*?
2016-11-18 15:48:31 -08:00
Nathan Shively-Sanders 91e6bce34c Address PR comments 2016-11-18 15:44:15 -08:00
Nathan Shively-Sanders b514d7c91c Merge pull request #12362 from Microsoft/disable-evolving-types-with-implicit-any
Disable evolving types with implicit any
2016-11-18 15:39:02 -08:00
Nathan Shively-Sanders 7caee79ce7 Rename getJSDocComments -> getCommentsFromJSDoc 2016-11-18 15:10:19 -08:00
Nathan Shively-Sanders ab84cd0647 Improve readability of types and names 2016-11-18 15:03:40 -08:00
Sheetal Nandi f626ff777f Merge pull request #12363 from Microsoft/declarationsInFilesWithErrors
Fixes for #12291 and  #12326: Declaration emit when there are errors in the source file
2016-11-18 14:57:09 -08:00
Nathan Shively-Sanders 7750fe1a7c Always enable evolving types in Javascript files 2016-11-18 14:13:56 -08:00
Anders Hejlsberg e81da9cd8a Merge pull request #12351 from Microsoft/mappedTypeRelations
Higher order type relations for mapped types
2016-11-18 14:10:09 -08:00
Sheetal Nandi aa556502f3 Handle when type alias's type parameter extends type that wont get emitted in .d.ts
Fixes #12326
2016-11-18 14:02:57 -08:00
Nathan Shively-Sanders a4d584f14a Update baselines to have no evolving types 2016-11-18 13:53:18 -08:00
Nathan Shively-Sanders 8674d92bdb Disable evolving types with implicit any
That is, without --noImplicitAny
2016-11-18 13:51:44 -08:00
Vladimir Matveev 9945529875 use location of config file as initial location for automatic type reference inclusion if possible (#12341) 2016-11-18 13:39:11 -08:00
Anders Hejlsberg a789990781 Add tests 2016-11-18 13:31:10 -08:00
Anders Hejlsberg 2376e30410 Support apparent types for T[K] indexed access types 2016-11-18 13:30:56 -08:00
Sheetal Nandi cbde25f229 Handle the scenario when heritage clause of interface is not entity name expression
Fixes #12291
2016-11-18 13:11:33 -08:00
Ron Buckton 2f6ac5816d Fix lint warnings 2016-11-18 10:46:24 -08:00
Ron Buckton 1c0917abef Merge branch 'master' into asyncGenerators 2016-11-18 10:32:54 -08:00
Ron Buckton 1af8ac8ccf Update es2017 library and baseline 2016-11-18 10:32:22 -08:00
Myles Megyesi d8b0f239f1 Fixes error message when Type is used as a Namespace
Fixes #12075
2016-11-18 11:38:24 -06:00
Andy Hanson 64f17c5a98 Use a symbol for untyped modules to distinguish from unknownSymbol 2016-11-18 07:50:51 -08:00
Andy Hanson aa0d2ce2ee Make "exclude" default to empty if "include" is present. 2016-11-18 06:55:03 -08:00
Anders Hejlsberg 075a3eb98f Add new tests 2016-11-18 06:27:45 -08:00
Anders Hejlsberg 79bdc26745 Accept new baselines 2016-11-18 06:27:24 -08:00
Anders Hejlsberg 63387bb5e0 Error on circular constraints in mapped types 2016-11-18 06:13:04 -08:00
Ron Buckton 281c8902a6 ES5 tests for async generators 2016-11-18 00:22:26 -08:00
Ron Buckton c758359a63 ES6 tests for async generators 2016-11-18 00:11:53 -08:00
Ron Buckton 42085a6576 Conformance tests for for-await-of 2016-11-17 23:25:24 -08:00
Ron Buckton e53263edbb Added conformance tests for async generators 2016-11-17 23:17:42 -08:00
Anders Hejlsberg 2646828198 Type relations for generic mapped types 2016-11-17 20:18:00 -08:00
Mohamed Hegazy 9fec77551c Merge pull request #12217 from subzey/feature/rest-loop-index
Codegen: Do not subtract 0 in arguments to rest array loop
2016-11-17 17:31:57 -08:00
Sheetal Nandi 0b3074fbdd Keep the original api and add new api that handles the JsonNode
Also handle the JsonNode when converting to parsedCommandLine
2016-11-17 15:43:47 -08:00
Nathan Shively-Sanders e81cfa10d6 Clean cache code and streamline other code
Cache only uses one property now. getJSDocs isn't generic and doesn't
take a function parameter any more. The code is overall easier to read.
2016-11-17 15:32:16 -08:00
Vladimir Matveev a2b13d05f2 pass project name as a constructor parameter (#12333) 2016-11-17 15:12:32 -08:00
Sheetal Nandi b3f816ba24 Reorganize functions so commandline parser can include parser.
This fixes build of typings installer
2016-11-17 14:45:01 -08:00
Sheetal Nandi cca98c308f Parse json using our own parser 2016-11-17 14:45:01 -08:00
Nathan Shively-Sanders ddffe209f9 Clean up getJSDocParameterTag
And delete its near-duplicate which was much less correct. The callers
that had to switch are slightly more complex and more correct now.
2016-11-17 14:26:38 -08:00
Nathan Shively-Sanders 5a05b94fb5 Clean up getJSDocs
1. Get rid of parent check.
2. Use a couple of nested functions, one of them a recursive worker.
2016-11-17 13:27:57 -08:00
Ryan Cavanaugh c90a40c58f Merge pull request #12317 from RyanCavanaugh/fix12302
Revert "fix #11670, support type guards in NumberConstructor (#11722)"
2016-11-17 11:17:04 -08:00