https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
83efc9f Update LKG for 4.6.1-rc. 11 February 2022, 01:14:20 UTC
85cd735 Bump version to 4.6.1 RC. 11 February 2022, 00:59:17 UTC
4b395b6 Merge remote-tracking branch 'origin/main' into release-4.6 11 February 2022, 00:53:32 UTC
0655f32 Add missing isolatedModules error for `export import` (#47838) * Add missing isolatedModules error for `export import` * Update existing baseline 11 February 2022, 00:13:04 UTC
954d044 Avoid auto-importing from barrel re-exporting index files that are likely to make an import cycle (#47516) * Avoid auto-importing from barrel re-exporting index files that are likely to make an import cycle * Finish fixing merge conflict 10 February 2022, 23:05:08 UTC
b456702 feat(11378): check param names in JSDoc (#47257) 10 February 2022, 18:02:07 UTC
954ce5b fix(46611): allow to use jsdoc type on class methods (#46688) 10 February 2022, 17:17:30 UTC
df673f7 Update package-lock.json 10 February 2022, 06:07:00 UTC
42aa18b mergeSymbol in checker:Remove block-scoped duplicate declaration errors in plain JS (#47825) * Checker:Remove block-scoped duplicate declaration errors in plain JS Previously they were issued in mergeSymbol, not they are not issued. * fix semicolon lint 10 February 2022, 00:26:27 UTC
95c22d1 fix(47076):Fix error term of declaration in modules (#47087) * Fix error term of declaration in modules * fix test * change error code of "An import declaration can only be used at the top level of a module." * Separate js and ts files for export errors in module. * Change non-top-level error in namespace * format Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 09 February 2022, 21:19:30 UTC
2d0a00d Fix destructuring and narrowing interaction (#47337) * WIP: pass in checkmode to getNarrowableTypeForReference * add tests * another pass through new check mode argument * rename new check mode * only use rest flag for rest elements in objects * add and update tests * change check mode flag name * restore package-lock.json * fix comments * get rid of fourslash tests * fix caching in checkExpressionCached when checkMode is not normal * Don't distinguish between object and array rest elements * get rid of undefined check mode * don't make includeOptionality into checkmode flag 09 February 2022, 20:25:07 UTC
d5c3015 Constructor function methods:Add two missing tag lookups (#47742) 1. During name resolution, `@param` and `@return` tags should walk up through the jsdoc comment and then jump to the host function. Previously they did not, which would cause them to not resolve type parameters bound in the scope of a host that was not a sibling of the comment. The example from #46618 is a prototype method: ```js /** * @template {T} * @param {T} t */ C.prototype.m = function (t) { } ``` 2. During name resolution, prototype methods are supposed to resolve types both from the host function's location and from the containing class' location. The containing class lookup happens in a separate call to `resolveName`. Previously, the code that finds the containing class only worked for the above style of comment, which is on the outer ExpressionStatement, but not for the below style, which is on the function expression itself: ```js C.prototype.m = /** * @template {T} * @param {T} t */ function (t) { } ``` 09 February 2022, 19:22:33 UTC
2cf5afd Avoid pulling on setter type when only getter type is needed to break circularity (#47818) 09 February 2022, 18:56:29 UTC
c06849a fix(47787): show QF to delete parameter in getter (#47797) 08 February 2022, 21:39:54 UTC
c5b1011 Compute writeType from set accessors for union and intersection properties (#47674) * Compute write type from set accessors for union and intersection properties * Add test for deferred writeType * Always check for writeType of symbol 08 February 2022, 20:57:34 UTC
17b97cc fix(47788): forbid convertToMappedObjectType QF in invalid index signatures (#47798) 08 February 2022, 19:36:45 UTC
460908a LEGO: Merge pull request 47801 LEGO: Merge pull request 47801 08 February 2022, 11:23:26 UTC
5b53e4e Update package-lock.json 08 February 2022, 06:08:53 UTC
c216b2d Trace document registry operations (#47785) ...to help detect misconfigurations like #47687. 08 February 2022, 00:10:38 UTC
1b6fb99 Log per-project FAR and update baselines (#47781) 08 February 2022, 00:10:01 UTC
d8ac54b Fix substitution types of indexed access types of substitution types (#47791) * Fix substitution types of indexed access types of substitution types * Add tests * Fix accidental unindentation 07 February 2022, 23:53:13 UTC
867470c fix(47783): show globals completion in case keyword outside of switch statement (#47786) 07 February 2022, 22:08:35 UTC
afeacf4 fix(47782): forbid super() extraction outside this container (#47784) 07 February 2022, 21:26:39 UTC
14feed9 LEGO: Merge pull request 47761 LEGO: Merge pull request 47761 07 February 2022, 10:50:24 UTC
163fef9 Update package-lock.json 06 February 2022, 06:06:05 UTC
e1532a1 Update package-lock.json 05 February 2022, 06:07:35 UTC
9c3b41d Refactor named imports to default instead of namespace when esModuleInterop is on and module is an export= (#47744) 05 February 2022, 01:11:25 UTC
8ddead5 fix(32941): include Template tag constraint to QuickInfo response (#47567) 05 February 2022, 00:12:23 UTC
3328feb Use 'static {}' for static fields when available and useDefineForClassFields is false (#47707) 04 February 2022, 20:34:29 UTC
ceee975 fix(45917): show completions in string literal followed by a comma (#46970) 04 February 2022, 20:15:02 UTC
300a53c Auto-import perf: Do symbol name/flags filtering before cache rehydration (#47678) * Do symbol name filtering before cache rehydration * Fix typo Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * Update test * Fix variable clobbered in merge conflict Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 04 February 2022, 17:17:55 UTC
69d06cb Update package-lock.json 04 February 2022, 06:07:01 UTC
0d5abd8 feat(27601): include JSDoc comments for destructuring arguments (#46886) 03 February 2022, 19:27:40 UTC
46d1cb1 i18n:Inappropriate localization (#46924) The previous version of the file incorrectly translated the keywords of some document comments into Chinese, which would be misleading 03 February 2022, 19:23:36 UTC
8d47ea0 Bump node-fetch from 2.6.1 to 2.6.7 (#47564) Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7. - [Release notes](https://github.com/node-fetch/node-fetch/releases) - [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md) - [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7) --- updated-dependencies: - dependency-name: node-fetch dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 03 February 2022, 19:22:54 UTC
b7d0117 "Convert parameters to destructured object": enable for functions with just one parameter (#46945) * "Convert parameters to destructured object": enable for functions with just one parameter Fixes https://github.com/microsoft/TypeScript/issues/41753 * Add test 03 February 2022, 18:13:05 UTC
9b0f01a Update package-lock.json 03 February 2022, 06:06:30 UTC
c4fd002 Fix @link https:// formatting (#47705) * Fix @link https:// formatting Also improve .d.ts formatting of `@link`,`@linkcode`,`@linkplain`. Fixes #46734 1. Previously, `@link` incorrectly put a space between "https" and "://" when formatting jsdoc for editors. Now it does not. 2. When fixing the same output for .d.ts, I discovered that all `@link` tags were formatted as `@link`, even if they were `@linkcode` or `@linkplain`. I fixed that too. * semicolon lint 02 February 2022, 22:00:08 UTC
854cec7 fix(47670): remove import alias that uses the same name (#47676) 02 February 2022, 18:45:18 UTC
afee8bf Update package-lock.json 02 February 2022, 06:06:01 UTC
880e2c0 support quickinfo and go-to-definition on `typeof this` (#47085) * support quickinfo and go-to-definition on `typeof this` * update baseline * move code to checkIdentifier 02 February 2022, 00:16:01 UTC
7cc0f75 Use node moduleResolution everywhere (#47687) TestRunner was already using it, but upstream projects (e.g. Compiler) were not, causing TestRunner to re-parse and re-bind all upstream files in (at least) editor scenarios), slowing down initial project load. In local testing, this cut a find-all-refs call in checker.ts from 5s to 2.5s. 01 February 2022, 23:59:59 UTC
2172e19 Correctly check computed property names in type-space get/set accessors (#47156) * Add test that should fail * Make it fail Fixes #47146 * Baselines 01 February 2022, 20:49:05 UTC
46e7ab4 fix typefacts of intersection (#47583) 01 February 2022, 20:10:43 UTC
21bbb57 Fix captured const in downlevel for-await (#47680) 01 February 2022, 19:47:29 UTC
63d9d4c Transform param patterns/initializers after object rest (#47095) 01 February 2022, 19:46:29 UTC
1ebdcc6 Fix inlay hint crash for jsdoc function type syntax (#47684) * Fix inlay hint crash for jsdoc function type syntax Parameters in JSDoc function types do not have names. The type does not reflect this. This PR fixes the crash; I'll see how much churn it causes to fix the type as well. Fixes #47606 * make inlay hints test smaller 01 February 2022, 18:11:39 UTC
7183b14 Fix captured let/const in 'for' condition or incrementer (#47681) 01 February 2022, 17:48:15 UTC
9d5f62a LEGO: Merge pull request 47677 LEGO: Merge pull request 47677 01 February 2022, 00:15:22 UTC
a17c367 Bump copy-props from 2.0.4 to 2.0.5 (#47342) Bumps [copy-props](https://github.com/gulpjs/copy-props) from 2.0.4 to 2.0.5. - [Release notes](https://github.com/gulpjs/copy-props/releases) - [Changelog](https://github.com/gulpjs/copy-props/blob/master/CHANGELOG.md) - [Commits](https://github.com/gulpjs/copy-props/compare/2.0.4...2.0.5) --- updated-dependencies: - dependency-name: copy-props dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 31 January 2022, 23:36:08 UTC
3f55d68 Manual revert of AbortSignal.abort in webworker.generated.d.ts (#47675) Same as #47643, I just missed it until looking at remaining DT failures. I need to update the DOM-lib-generator automation, but for now I want to get TS types corrected. 31 January 2022, 19:30:57 UTC
92f54d6 LEGO: Merge pull request 47666 LEGO: Merge pull request 47666 30 January 2022, 18:22:05 UTC
0388218 LEGO: Merge pull request 47664 LEGO: Merge pull request 47664 30 January 2022, 12:14:24 UTC
e5d7d70 LEGO: Merge pull request 47661 LEGO: Merge pull request 47661 30 January 2022, 06:14:39 UTC
3d2ac9d LEGO: Merge pull request 47659 LEGO: Merge pull request 47659 29 January 2022, 18:15:39 UTC
17aec75 Update terminal.integrated.shell.linux config in devcontainer.json (#47192) The previous `"terminal.integrated.shell.linux"` configuration is deprecated. This is the new way of setting this configuration 29 January 2022, 08:42:56 UTC
3e19cc8 remove unused errors in checkGrammarModifiers (#47198) 29 January 2022, 01:23:13 UTC
38ed8eb LEGO: Merge pull request 47655 LEGO: Merge pull request 47655 29 January 2022, 00:14:38 UTC
0b9f8b4 Fix confusing file name in generated diagnostics file (#46821) * Fix confusing file name in generated diagnostics file * Change "by" to "in" 28 January 2022, 23:08:19 UTC
2d501b1 fix(47582): skip extraction if the type node is in the range of the type parameter declaration (#47596) 28 January 2022, 20:19:48 UTC
eb3e7bd LEGO: Merge pull request 47649 LEGO: Merge pull request 47649 28 January 2022, 12:14:33 UTC
09b84d5 LEGO: Merge pull request 47647 LEGO: Merge pull request 47647 28 January 2022, 06:18:31 UTC
deb36b9 Update package-lock.json 28 January 2022, 06:08:10 UTC
3de032f Allow usage of local value symbol merged with type-only import (#47642) 28 January 2022, 00:18:14 UTC
9028051 Add `assert` keyword in completions (#47644) * add contextual keyword assert in completions * clean up 28 January 2022, 00:17:43 UTC
f2c51c1 LEGO: Merge pull request 47645 LEGO: Merge pull request 47645 28 January 2022, 00:15:37 UTC
4d29859 Fix duplicate completions from two different copies of a node_modules package (#47584) * Fix duplicate completions from two different copies of a node_modules package * Fix logic for scoped packages * Fix errors from merge * Less gross way to reconcile these two conflicting PRs 27 January 2022, 22:35:36 UTC
61b7bbb Revert to temporary AbortSignal fix (#47643) I forgot to keep the temporary fix when I updated the DOM yesterday. 27 January 2022, 21:28:17 UTC
e9092f3 Proposal: simplify auto import descriptions (#47631) * Simplify import fix descriptions * Update tests * Fix new test 27 January 2022, 18:21:08 UTC
208cb2d LEGO: Merge pull request 47641 LEGO: Merge pull request 47641 27 January 2022, 18:14:34 UTC
b7b6483 LEGO: Merge pull request 47640 LEGO: Merge pull request 47640 27 January 2022, 12:15:07 UTC
52e785f LEGO: Merge pull request 47635 LEGO: Merge pull request 47635 27 January 2022, 06:15:11 UTC
b6075d8 Update package-lock.json 27 January 2022, 06:07:47 UTC
5813a35 Allow moduleSymbolToValidIdentifier to be uppercase for JSX tags (#47625) * Allow moduleSymbolToValidIdentifier to be uppercase for JSX tags * Cleaner way of getting the uppercase name when needed * Fix build errors, get rid of basically unnecessary ScriptTarget * More accurate name for parameter * Rename other parameter too * Fix failing test 27 January 2022, 00:12:40 UTC
0d3ff0c Add codefix and completions for promoting existing type-only imports to non-type-only (#47552) * Import fix * Wire up completions, add sorting to fix * Fix overlapping changes when there’s only one import specifier * Update API baseline * Add sorting and filtering back to UMD fix 26 January 2022, 23:07:41 UTC
3718182 Don't block completion after end of type parameters in JSX elements (#47501) 26 January 2022, 22:45:21 UTC
0f3809e fix: enum self reference (#47287) * fix: enum self reference * fix: add test case * chore: clean code * fix: check `errorType` directly * chore: revert refactor of `isConstantMemberAccess` 26 January 2022, 22:13:34 UTC
53b96d9 Update DOM 2022-01-26 (#47623) Improves types for FileSystemHandle.kind in subtypes, plus other bcd updates. 26 January 2022, 20:29:25 UTC
c191e7c Fix diagnostic serialization crash (#47604) * Add crashing test * Fix unsafe cast to DiagnosticMessageChain 26 January 2022, 18:41:47 UTC
3206df8 fix(47561): use parameter name from enclosing declaration (#47609) 26 January 2022, 12:00:14 UTC
d56d621 Update package-lock.json 26 January 2022, 06:06:54 UTC
20b5523 feat(42684): allow deprecated JSDoc tag to be used on aliased nodes (#47293) 25 January 2022, 23:49:33 UTC
0673f02 Fix JsDocTags inheritage and setter/getter quickInfo (#46801) * tmp * fix jsdoc inheritage for property and setter/getter * fix test * fix test * fix mirrors * add more tests * add tests of jsdoc for intance of class 25 January 2022, 23:43:12 UTC
f84a67f Don't trace bindSourceFile cache hits (#47602) Writing the trace entry takes longer than returning the cached value. Fixes #47565 25 January 2022, 22:57:17 UTC
ba402e6 Allow structure reuse if a declaration file within a package is updated (#47472) * Allow structure reuse if a declaration file within a package is updated Closes #47471 * Use correct program to obtain source file in structure reuse test 25 January 2022, 19:04:53 UTC
a9efe2b Update package-lock.json 25 January 2022, 06:06:20 UTC
6927730 Fix detecting an existing `Map`/`Set` This didn't affect compilation to CJS since that sets `exports.Map` instead of creating a global. 24 January 2022, 20:47:10 UTC
b9efc3b Update package-lock.json 23 January 2022, 06:06:24 UTC
0019c01 Update package-lock.json 22 January 2022, 06:06:15 UTC
3cbc8d2 Fix narrowing of intersection with function type (#47483) * add and and or mask to typefacts * add comment 21 January 2022, 20:05:34 UTC
9b6c179 Fix parser test cases missing 'it' calls (#47545) 21 January 2022, 19:32:23 UTC
5e38082 fix(47165): ignore spaces in goToDefinition imports (#47541) 21 January 2022, 18:09:10 UTC
40c4fac Bump version to 4.6.0-beta, accept baselines, and LKG. 21 January 2022, 04:45:31 UTC
5e09e86 return early from fixUnreachableCode if syntactic errors exists (#47463) 20 January 2022, 23:45:42 UTC
e9453f4 fix(47524): skip assertion on checking this in fixImplicitThis QF (#47527) 20 January 2022, 22:58:28 UTC
ab4d319 Fixed Go To Definition using jsconfig (#47434) * Fixed Go To Definition using jsconfig * Fixed formatting 20 January 2022, 22:45:29 UTC
7e3ecce Associate paths with nodes when tracing (#47530) Walking up the tree to find the enclosing SourceFile would distort the timing too much so, instead, we attach a Path in the binder. At present, the path is determined retroactively by walking up the call stack in the trace visualizer, but this is both inconvenient and routinely inaccurate (checking an expression in one file may require checking an expression in another file and there's no way to determine from the trace where this transition occurred). 20 January 2022, 22:38:36 UTC
bae0f50 Fix import assertion occurrences crash and make import assertion parsing more generous (#47535) 20 January 2022, 22:08:47 UTC
04d77fe Update to TypeScript 4.5.5, fix semantic lints. (#47529) * Update to TypeScript 4.5.5, fix semantic lints. * Remove extra parens. * Remove now-outdated non-null comment around #18217. 20 January 2022, 19:33:30 UTC
6c8c829 Update package-lock.json 20 January 2022, 06:07:54 UTC
back to top