https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
9bb8c7f Accept new API baselines 20 November 2019, 21:45:44 UTC
337ab38 Use type arguments instead of flags to detect variance marker types 20 November 2019, 21:45:18 UTC
75301c8 DOM update 2019-11-19 (#35207) * DOM update 2019-11-19 * update baselines * update more baselines 19 November 2019, 23:02:51 UTC
571ca60 Add preceding semicolon on await insertion when parentheses are included (#34627) * Add preceding semicolon on await insertion when parentheses are included * Just start with precedingToken * Fix semicolon formatter regression * Delete test with debatable expected behavior * Lint after control flow changes 19 November 2019, 21:11:42 UTC
b50b9e0 Fix check for `get`/`set` recommendation (#34885) * Added more tests. * Accepted baselines. * Work better with any parameter type. * Accepted baselines. * Use the actual indexed expression. * Add tests that exhibit bad stringification. * Accepted baselines. * Short-circuit stringification on 'undefined'. * Accepted baselines. * Remove space. * Accepted baselines. 19 November 2019, 21:00:24 UTC
0bbeab6 Revert "Skip costly tests" (#35197) * Revert "Skip costly tests" * fix package.json format 19 November 2019, 20:59:09 UTC
af0d5d3 Improve positioning of the implement interface codefix (#34928) 19 November 2019, 17:13:50 UTC
6c59dc3 More tests for super.method call chain, improve vary-by (#35013) 19 November 2019, 02:03:37 UTC
fce728e fix emit for delete on optional chain (#35090) * fix emit for delete on optional chain * Apply suggestions from code review Co-Authored-By: Ron Buckton <ron.buckton@microsoft.com> 19 November 2019, 00:34:47 UTC
8b83703 Properly strip readonly from rest argument types (#35169) * Properly strip readonlyness from rest argument types * Add tests * Accept new baselines 18 November 2019, 21:11:36 UTC
e39bdc3 Adds back the script to request a playrgound build (#35168) 18 November 2019, 17:05:54 UTC
2511f34 fix: mardkown link syntax error (#35123) 18 November 2019, 15:36:23 UTC
196c0aa Fix excess property checking for unions with index signatures (#34927) * Fix excess property checking for union targets with index signatures * Accept new baselines * Remove unused code * Add tests * Accept new baselines 15 November 2019, 18:59:58 UTC
48fa3a5 Update LKG (#35128) 15 November 2019, 18:31:30 UTC
3bcea0d Fix #35060 (#35065) * Fix 35060 * Refactor and check ro-array to tuple case * Lint 15 November 2019, 18:13:10 UTC
5321dcb disallow 'await' and 'yield' in property and enum member initializer (#34892) * disallow 'await' and 'yield' in property and enum member initializer * accept baseline changes * Add a test for #34887 Ensures that this fixes #34887 15 November 2019, 01:44:48 UTC
8f40ac0 optimize transform of optional chaining and nullish coalescing (#34951) * optimize transform of optional chaining and nullish coalescing * remove unnecessary condition * typo * fix lint * prevent capturing of super * swap branches again * accept new baselines * avoid temporary objects 15 November 2019, 01:34:13 UTC
aa0cb88 Support dynamic file names with project root path (#35111) * Support dynamic file names with project root path Fixes #35094 * Remove unexpected change 14 November 2019, 23:37:00 UTC
ef0cca7 Adds 'did you mean' to the CLI args parser (#35063) * Adds did you mean to the CLI args parser * Adds test coverage for the did you mean on CLI args * Adds did you mean to convertOptionsFromJson * Ensure tsconfig compiler flags also get 'did you mean?' 14 November 2019, 01:16:48 UTC
f5bdd4d Update user baselines (#35075) 13 November 2019, 21:13:38 UTC
38db7ae Properly analyze switch statement bypass control flow (#35087) * Properly analyze switch statement bypass control flow * Add regression test * Accept new baselines 13 November 2019, 17:22:18 UTC
aa39080 Do not allow freshness to move errors out of the current file, ensure json documents are deeply unfreshened and fully widened (#35048) 12 November 2019, 21:30:27 UTC
f334476 Fix import type resolution in jsdoc, mark 2 (#35057) Fake alias resolution only applies when the import type is followed by a qualified name. Otherwise the alias is sufficiently resolved already. 12 November 2019, 20:44:30 UTC
94f8590 strip QuestionToken from MethodDeclaration and PropertyDeclaration emit (#34954) * strip QuestionToken from MethodDeclartion emit Fixes: #34953 * test property emit 12 November 2019, 18:30:46 UTC
5c95163 Fix chalk import (#35040) 11 November 2019, 19:24:20 UTC
3a5230a Defer switch exhaustiveness checks (#35000) * Defer switch exhaustiveness checks until they're actually needed * Add regression test * Accept new baselines 09 November 2019, 15:52:39 UTC
165b4bc More version sanitization 08 November 2019, 01:14:16 UTC
53d2b7e Don’t assume importing some JSON means you want everything imported with .js extensions (#34961) 07 November 2019, 22:55:54 UTC
4cbace7 Add "auto" to importModuleSpecifierPreference (#34981) * Add "auto" to importModuleSpecifierPreference * Update APIs 07 November 2019, 22:55:13 UTC
db43be1 Fix missing semicolon 07 November 2019, 22:53:12 UTC
07d80ed Strip more timestamps and versions from docker logs to better handle the more verbose logging from office-ui-fabric 07 November 2019, 22:11:33 UTC
f2146a6 Fix `isInJsxText` after JSXOpeningElement with type arguments (#34958) * Fix `isInJsxText` after JSXOpeningElement with type arguments * Do the same thing a different way 06 November 2019, 23:02:45 UTC
b9fe84e Fix up some of the ignore files, and removing the create language service script (#33684) * Fix up some of the ignore files, and removing the create script * Update .dockerignore 06 November 2019, 16:11:29 UTC
1c42c1a Fix control flow analysis in try-catch-finally (#34880) * Revise creation of control flow graph for try-catch-finally statements * Add tests * Accept new baselines 05 November 2019, 20:06:25 UTC
95be956 Fix switch statement exhaustiveness checking (#34840) * Don't optimize away CFA nodes representing missing default clauses * Add regression test * Accept new baselines 05 November 2019, 20:05:41 UTC
966d986 Properly instantiate object types created from rest parameters (#34826) * Anonymous types of rest variable declarations need instantiation * Add regression test * Accept new baselines * Accept new API baselines 05 November 2019, 20:04:45 UTC
56cad36 (34894): Wrong information in error message for overridden acc… (#34901) 05 November 2019, 05:07:03 UTC
be960fa Add related diagnostic to "used before defined" if type is a function that returns a union with undefined (#33171) * Add "use before defined" diagnostic * Make "use before defined" diagnostic as related information to TS2454 * Add baseline tests for "use before defined" * Add test for type alias union with undefined for "use before defined" diagnostic * Update baselines 04 November 2019, 22:53:31 UTC
47ec514 Use empty object for invalid package json contents instead of undefined (#34906) * Use empty object for invalid package json contents instead of undefined Fixes #34726 * Behave as if package json doesnt exist in case of invalid json in package json 04 November 2019, 22:31:45 UTC
9a3ec5f Improve error message when compiling a .js file (#34861) * Improve error message when compiling a .js file * Add dedicated error message for .json and .js files * Update missing baseline tests * Remove error hint for .json files 04 November 2019, 19:59:06 UTC
ba5e86f Propagate 'undefined' instead of the optional type marker at an optional chain boundary (#34588) * Propagate 'undefined' instead of the optional type marker at an optional chain boundary * Update src/compiler/types.ts Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 01 November 2019, 18:36:22 UTC
ec367fe Remove the ping for playgrounds on TS deploys (#34862) 01 November 2019, 01:50:00 UTC
e228294 Update user baselines (#34851) 31 October 2019, 21:23:55 UTC
239937d Update user baselines (#34845) 31 October 2019, 18:00:03 UTC
9ff378a Exclude types originating in literals from recursion depth limiter check (#34742) * Exclude types originating in literals from recursion depth limiter check * Add tests * Accept new baselines * Remove superfluous test 31 October 2019, 13:14:43 UTC
2346808 add template literal spans (#34699) 31 October 2019, 06:54:00 UTC
9cc0fcd Update user baselines (#34838) 30 October 2019, 23:58:59 UTC
0c2e964 Update user baselines (#34820) 30 October 2019, 21:05:20 UTC
7b02c63 Report generic rest parameters as unreliable variance positions (#33020) * Report generic rest parameters as unreliable variance positions * Add example from discussion on #30301 30 October 2019, 20:54:39 UTC
5e0fbc6 Add circularity checking during deferred type argument creation (#34791) 30 October 2019, 20:36:43 UTC
8b7664a Generate more correct property name nodes in declaration emit (#34741) * Generate more correct property name nodes in declaration emit * Silly only-on-CI lint rule T.T 30 October 2019, 19:40:59 UTC
d28672d Fix alias naming and structure bugs in js declarations (#34786) * Fix alias naming and structure bugs in js declarations * Add another test case and change condition for ns merge to require signature or export content * Fix typo in comment 30 October 2019, 19:40:06 UTC
87cc8c4 Evaluate RHS of binding/assignment pattern first (#34806) 30 October 2019, 00:42:30 UTC
00dd1f0 Add isIntersectionConstituent to relation key (#34789) * Add isIntersectionConstituent to relation key isIntersectionConstituent controls whether relation checking performs excess property and common property checks. It is possible to fail a relation check with excess property checks turned on, cache the result, and then skip a relation check with excess property checks that would have succeeded. #33133 provides an example of such a program. Fixes #33133 the right way, so I reverted the fix at #33213 Fixes #34762 (by reverting #33213) Fixes #33944 -- I added the test from #34646 * Update comments in test 29 October 2019, 22:08:59 UTC
7635884 JSDoc type reference understands require with entity name (#34804) * resolve require with entity name postfix For example, `require("x").c`. This is the value equivalent of `import("x").a.b.c`, but the syntax tree is not as nicely designed for this purpose. Fixes #34802 * Add bug number to test * Add optional chain test 29 October 2019, 21:56:33 UTC
f7cb2f2 Update user baselines (#34759) 29 October 2019, 21:26:50 UTC
dbef230 This handles when packages are symbol links in mono repo like scenarios to use source files instead of output d.ts from project reference (#34743) * Fix incorrect outDir usage instead of out * Handle symlinks of packages in mono repo like packages Fixes #34723 * Added clarified comment 29 October 2019, 17:49:14 UTC
554bd24 Fix checker handling for empty type argument lists (#34790) 29 October 2019, 15:56:11 UTC
ff590b6 Fix a crash when transforming functions in modules. (#34513) When transforming a module declaration and block, parse tree nodes contained in the module block have their parent pointers reset due to `shouldEmitModuleDeclaration` calling into `isInstantiatedModule`, which needs to set parent pointers to operate. That causes a crash when later transforming any nodes within the module, as retrieving their source file in `getSourceFileOfNode` (via `getOrCreateEmitNode`) fails, due to their new synthesized parent nodes not being in a source file. This change avoids the issue by using the parse tree node in `ts.ts` to decide whether a module declaration should be emitted (i.e. whether the module contains values). This means transformers cannot add values to modules that previously did not contain any. Fixes #34644. 29 October 2019, 15:40:49 UTC
cbbbcfa Fix incorrectly looking for position in call/new expression arguments when looking for indentation of type arguments (#34779) * Fix incorrectly looking for position in call/new expression arguments when looking for indentation of type arguments Fixes #32487 * Update src/services/formatting/smartIndenter.ts Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 28 October 2019, 21:02:09 UTC
05cbe5a Update issue reports agian (#34768) * Update issue templates * Add config.yml * Updates * Updates 28 October 2019, 18:15:31 UTC
a28fceb Update issue templates (#34767) * Update issue templates * Add config.yml 28 October 2019, 18:12:20 UTC
72b7a65 Adds accept header to the dispatch request when requesting a playground build of monaco (#34763) 28 October 2019, 18:07:36 UTC
634e0ad Fix extract type on JS function params (#34745) 28 October 2019, 17:30:59 UTC
080e41d Fix type reference to merged prototype property assignment (#34764) The constructor function code path in the return type checking of signatures needs to pass the *merged* symbol of the declaration to getDeclaredTypeOfClassOrInterface. Other callers of getDeclaredTypeOfClassOrInterface do this, or used an already-merged symbol. Fixes #33993 28 October 2019, 17:14:04 UTC
eb0208c make `globalThis` have an empty `declarations` (#34561) Fixes #33860 by making it an error. This is an improvement, but sounds like it would be better to make it work later. 26 October 2019, 02:49:31 UTC
d8840f8 Show all matching enum flags in debug flag formatter (#34689) * Show all matching enum flags in debug formatter * Revert "Show all matching enum flags in debug formatter" This reverts commit 073099722a297ac0d483566ebd806357dafbb63d. * Same thing but simpler * Lint 25 October 2019, 23:27:24 UTC
88f3593 Fix error when exporting const enums (#33060) (#34721) * Allow export declaration to reference const enums * Update baselines * Add test to verify reexported const enums are elided 25 October 2019, 23:04:44 UTC
f12eee2 Include *.json in the root files if they are specified as root (#34676) Fixes #33827 25 October 2019, 20:48:38 UTC
a01c8ef Fix typo in watchMode.ts (#34701) 25 October 2019, 20:13:00 UTC
8e1d228 Update inconsistent use of the word multiline/multi-line in test cases (#34733) The word multi-line and multiline are used interchangeably within the file. Multiline seems to be the most used spelling of the word across the TypeScript repository codebase so a few strings have been updated to keep consistency within a single file. Additionally, corrected a minor capitalization mistake. 25 October 2019, 18:28:50 UTC
5e4cd05 Update CONTRIBUTING.md 24 October 2019, 23:49:51 UTC
c404c08 Fix reachability analysis for ?? operator (#34702) * Exclude ?? operator from true/false literal check in createFlowCondition * Accept new API baselines * Add tests * Accept new baselines * Address CR feedback * Accept new API baselines 24 October 2019, 22:57:14 UTC
a03227d Avoid a crash with `@typedef` in a script file. (#33847) * Avoid a crash with `@typedef` in a script file. Scripts (as opposed to modules) do not have a symbol object. If a script contains a `@typdef` defined on a namespace called `exports`, TypeScript crashes because it attempts to create an exported symbol on the (non-existent) symbol of the SourceFile. This change avoids the crash by explicitly checking if the source file has a symbol object, i.e. whether it is a module. * Add usage of exports.SomeName typedef. * Fix bug at bind site rather than in declare func 24 October 2019, 21:04:42 UTC
7cfa1df Fix regression in mixin emit by removing unneeded line of code (#34715) * Fix regression in mixin emit by removing unneeded line of code * Double the test, double the fun 24 October 2019, 21:02:37 UTC
d892fd4 Fix expando handling in getTypeReferenceType (#34712) * Fix expando handling in getTypeReferenceType getExpandoSymbol looks for the initialiser of a symbol when it is an expando value (IIFEs, function exprs, class exprs and empty object literals) and returns the symbol. Previously, however, it returned the symbol of the initialiser without merging with the declaration symbol itself. This missed, in particular, the prototype assignment in the following pattern: ```js var x = function x() { this.y = 1 } x.prototype = { z() { } } /** @type {x} */ var xx; xx.z // missed! ``` getJSDocValueReference had weird try-again code that relied on calling getTypeOfSymbol, which *does* correctly merge the symbols. This PR re-removes that code and instead makes getExpandoSymbol call mergeJSSymbols itself. * Remove extra newline 24 October 2019, 20:12:44 UTC
969634b Restore delayed merge check to getTypeFromJSDocValueReference (#34706) * Restore delayed merge check to getTypeFromJSDocValueReference This is needed when a function merges with a prototype assignment. The resulting *merged* symbol is a constructor function marked with SymbolFlags.Class. However, the merge doesn't happen until getTypeOfFuncClassEnumModule is called, which, in the getTypeReferenceType code path, doesn't happen until getTypeFromJSDocValueReference. That means the check for SymbolFlags.Class is missed. Previously, getTypeFromJSDocValueReference had a weird check `symbol !== getTypeOfSymbol(symbol).symbol`, which, if true, ran getTypeReferenceType again on `getTypeOfSymbol(symbol).symbol`. For JS "aliases", this had the effect of dereferencing the alias, and for function-prototype merges, this had the effect of ... just trying again after the merge had happened. This is a confusing way to run things. getTypeReferenceType should instead detect a function-prototype merge, cause it to happen, and *then* run the rest of its code instead of relying on try-again logic at the very end. However, for the RC, I want to fix this code by restoring the old check, with an additional check to make sure that #33106 doesn't break again: ```ts const valueType = getTypeOfSymbol(symbol) symbol !== valueType.symbol && getMergedSymbol(symbol) === valueType.symbol ``` I'll work on the real fix afterwards and put it into 3.8. * Add bug number 24 October 2019, 16:24:58 UTC
07d3a2e Do not consider element accesses which are neither statically bindable nor late bound as special assignments (#34679) 23 October 2019, 23:01:25 UTC
8223c07 getTypeFromJSDocValueReference: handle import types (#34683) Previously it only handled types whose declaration was from `require`, but now it handles types whose reference is an import type as well. 23 October 2019, 22:53:38 UTC
eb08ee6 Add GitHub Actions (#34614) 23 October 2019, 20:57:49 UTC
56b74d3 Merge pull request #34648 from orta/readme_links Update the README links 23 October 2019, 19:14:59 UTC
f689982 Prioritize loading plugin from probeLocations over peer node_modules This commit reoroders the loading sequence of a tsserver plugin. It should first check `pluginProbeLocations` before checking peer node_modules. PR closes https://github.com/microsoft/TypeScript/issues/34616 23 October 2019, 18:28:44 UTC
6f04f52 Merge pull request #34659 from amcasey/FARGlobalThis Don't assume that all symbols have declarations 22 October 2019, 23:26:19 UTC
590fd3f Don't assume that all symbols have declarations ...in Find All References. For example, global `this` doesn't in modules. Part of #34404 22 October 2019, 22:00:30 UTC
479d306 Fix crash in assigning function with this ref to alias (#34650) 22 October 2019, 21:33:45 UTC
1cbbe28 Treat any mix of element/prop access as declaration in JS (#34649) Fixes #34642 but, notably, doesn't actually make the assignment into a working declaration. It just fixes the crash. 22 October 2019, 18:28:28 UTC
73a206b Update the README links 22 October 2019, 17:43:52 UTC
159b626 Merge pull request #34631 from amcasey/ComputedPropName Handle undefined from getPropertyNameForPropertyNameNode 22 October 2019, 17:17:05 UTC
8cf1324 Merge pull request #34521 from amcasey/LazyDirectoryCreation Stop pre-emptively creating directories 22 October 2019, 00:41:54 UTC
7862e58 Handle undefined from getPropertyNameForPropertyNameNode ...which can be returned when the property name is computed. Part of #34404 22 October 2019, 00:41:06 UTC
af2f46e Use longer lambda parameter names 21 October 2019, 23:22:10 UTC
778a757 Change `master` branch version to 3.8 (#34629) Change `master` branch version to 3.8 21 October 2019, 22:37:07 UTC
def1e71 Accepted baselines. 21 October 2019, 22:11:16 UTC
1b0fca5 Update version to 3.8. 21 October 2019, 21:51:21 UTC
ca31f00 Address more potential `this` issues 21 October 2019, 21:01:12 UTC
6429e4c Fix undefined `this` 21 October 2019, 20:32:42 UTC
f84fd30 Merge pull request #34607 from microsoft/fix33490 Fix type inference regression 21 October 2019, 19:50:38 UTC
ff6626f Merge pull request #34597 from microsoft/optionalChainControlFlow More optional chaining control flow analysis 21 October 2019, 19:36:07 UTC
28028eb Extend the correct tsconfig.json. (#34615) Extend the correct tsconfig.json. 21 October 2019, 18:50:14 UTC
b167012 Extend the correct tsconfig.json. 21 October 2019, 17:46:41 UTC
back to top