Commit Graph
10600 Commits
Author SHA1 Message Date
Ryan Cavanaugh c72f1c354b Reuse existing var 2016-03-09 16:08:08 -08:00
Ryan Cavanaugh 14941f26a0 Add tests for each variant of UMD augmentation 2016-03-09 14:35:03 -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
Ryan Cavanaugh 5dbf252dc5 Fix duplicate errors in JSDoc function types with anon parameters
Fixes #6993
2016-03-09 09:18:54 -08: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
Daniel Rosenwasser 01c329c05e Merge pull request #7396 from mattmccutchen/issue7359
Expose ts.isExternalModule as public API.
2016-03-07 10:15:06 -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
Mohamed Hegazy 15640492c4 Code review comments 2016-03-04 14:21:31 -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
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
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
Vladimir Matveev 1589e4f57e set the maximum depth to explore during type inference 2016-03-03 10:47:21 -08:00
Mohamed Hegazy 24c47f18ad Merge pull request #7371 from Microsoft/checkForWatchFile
Fix #7362: check for --watchFile in tsconfig.json as well as on the c…
2016-03-03 10:44:26 -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
Mohamed Hegazy 0f6dbd0250 Merge pull request #7350 from basarat/patch-1
fix(build) `TypingResolutionHost` interface is used by exported function `discoverTypings`
2016-03-02 16:39:56 -08:00
Basarat Ali Syed 1bebc711b0 fix(build) TypingResolutionHost interface is used by exported function discoverTypings 2016-03-03 10:32:07 +11:00
Daniel Rosenwasser d6c56062b6 Merge pull request #7348 from Vinatorul/issue6540
Added new diagnostics message to clarify error for type guards
2016-03-02 13:55:56 -08:00
Alexander 694a48c445 Added new diagnostics message to clarify error for type guards
New diagnostics message "A type guard's type must be assignable to its parameter's type." number 2677
is now using in chain report to clarify vague error message for type guards.
2016-03-03 00:24:02 +03:00
jramsay de47fcc113 Merge pull request #7179 from Microsoft/jsTypingForAcquireDts
Salsa: JS support for discovering and acquiring d.ts files
2016-03-02 11:10:12 -08:00
Jason Ramsay e8772bc0a2 - Adding new lines after { for single-line if statements
- Renaming DiscoverTypingsSettings to DiscoverTypingsInfo to match host
2016-03-02 10:11:13 -08:00
Vladimir Matveev f34dcdd464 Merge pull request #7328 from Microsoft/flipSidesInSignatureCheck
flip sides source and target when we check signature relations
2016-03-01 19:28:19 -08:00
Jason Ramsay 4bbdf2a0bb - Removing filesToWatch from getTypingNamesFromNodeModuleFolder.
These modules are already installed and are not expected to change
2016-03-01 19:06:31 -08:00
Jason Ramsay 6aad783db8 - Adding DiscoverTypingsSettings
- Remove all references to Tsd.
Instead pass a map of package names to cached typing locations
2016-03-01 18:52:11 -08:00
Vladimir Matveev b3552c69d7 Merge pull request #7329 from Microsoft/allowFallFromLastCase
allow fallthrough from the last case of the switch
2016-03-01 17:24:00 -08:00
Vladimir Matveev 568e2aab58 allow fallthrough from the last case of the switch 2016-03-01 15:58:59 -08:00
Vladimir Matveev 0ef2b9ea85 flip sides source and target when we check signature relations 2016-03-01 15:47:00 -08:00
Ryan Cavanaugh 65f09d66ad Don't crash 2016-03-01 15:09:15 -08:00
Ryan Cavanaugh fe483a69ee Merge pull request #7326 from RyanCavanaugh/fix4577
Show aliases (e.g. imports) in JSX tag completion positions
2016-03-01 14:27:36 -08:00
Ryan Cavanaugh 6cdbc6cad0 Show aliases (e.g. imports) in JSX tag completion positions
Fixes #4577
2016-03-01 13:47:29 -08:00
Ryan Cavanaugh 1f9153f801 Update to push types through as well 2016-03-01 12:26:17 -08:00
Vladimir Matveev 1e2d4773a1 Merge pull request #7283 from Microsoft/noRedundantContinue
do not emit explicit 'continue' in converted loops
2016-03-01 12:15:03 -08:00
Jason Ramsay b3ceea3b3d - replacing TryParseJson with existing readConfig
- push error for invalid enableAutoDiscovery option
- adding interfaces for jsons
- removing updateNotFoundTypings
- node_modules normalize file names before using
- adding safeListPath to discoverTypings
2016-03-01 11:50:27 -08:00
Bill Ticehurst cb5e7f0f61 Merge pull request #7324 from Microsoft/port7310
Port issue 7310
2016-03-01 11:41:52 -08:00
Bill Ticehurst cbd7336914 Changed how parserContextFlags are handled in tests
(cherry picked from commit b5da80202f)
2016-03-01 11:08:40 -08:00