https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
98404ec Try a naive file load during parse, to see if that helps with pre-caching. 12 March 2021, 23:47:28 UTC
d2cb05a Emit readable BuilderFileEmit kind (#43221) 12 March 2021, 22:32:50 UTC
82bfe5a Fix issue with some baselines for tsbuildinfo not getting generated (#43218) 12 March 2021, 20:28:20 UTC
496a1d3 Improvements to dts emit for tsbuildinfo (#43205) * Test update * Use source file version as default signature for the file whenever there is no dts emit for the file * json source files from project reference should be able to calculate the signature * Dont emit declaration map when emitting dts files for force emit for signature 12 March 2021, 17:44:22 UTC
9c73e04 Update package-lock.json 12 March 2021, 06:25:10 UTC
2ea2f4f Bigint constructor forbids object null undefined (#43204) * Update es2020.bigint.d.ts * Update es2020.bigint.d.ts * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * add a test Co-authored-by: 龙腾道 <LongTengDao@LongTengDao.com> Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> 12 March 2021, 00:51:03 UTC
e44d39d Updated error message for TS2539 (#39827) * Updated error message for TS2539 * Switch to multiple error messages * inline variable Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 11 March 2021, 23:51:15 UTC
9933c8a Build info baseline improvements (#43200) * Use ids as 1 based so we can specialize `0` to be some special meaning * Baseline tsbuildinfo size in the readable baseline * Baseline fileName and fileNames list as well in readable tsbuildinfo so that new additions are easy to recognize 11 March 2021, 21:30:06 UTC
2643e65 Add missing relationship allowing a type to be assignable to a conditional when assignable to both branches (#30639) * Finally add that missing relationship allowing a type to be assignable to both branches of a conditional * Explicitly write out Ternary.Maybe * Add slightly modified example from #25413 * fix sick sentence * Loosen check to skip false branch constraint check to consider `infer` parameters as always satisfied in the extends clause * Simplify things a bit, only instantiate once Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 11 March 2021, 19:56:55 UTC
b2d1f53 Bloomberg computed property name fix (#43197) * Fix property name bindings for class expr in loops * Fix block-scope capturing with prop initializers Co-authored-by: Joey Watts <joey.watts.96@gmail.com> 11 March 2021, 18:32:42 UTC
998ecd9 Add a test for JSX namespace lookup with `jsx: preserve, jsxImportSource` (#41676) * Add a test for JSX namespace lookup with `jsx: preserve, jsxImportSource` * updated baselines Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 11 March 2021, 17:07:33 UTC
dcaefe7 Accept generics for defineProperty (#42424) * Accept generics for defineProperty Both `Object.defineProperty()` and `Object.defineProperties()` return their first argument. Use a generic so that typings can be passed through. * Update baselines * update missed baseline Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 11 March 2021, 15:57:42 UTC
71661b9 Fixed issue where non null assertion caused getFlowTypeOfReference to return the declared type if the type was already narrowed to never. (#35863) This was caused by the fact that getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull) will return never both if resultType was already never and if resultType does not contain undefined or null. In the latter case returning the declaring type is correct, in the former case this causes something narrowed to never to still be typed as the original declared type. 11 March 2021, 15:33:33 UTC
3d6650e Fix #38608 (#38610) * Fix #38608 * Work for narrowed non-unions * Add comment 11 March 2021, 15:32:49 UTC
79d3058 Don't crash when renaming a JS property declared via module.exports (#40297) Fixes #38070 When the originating definition was of the form ```js module.exports.foo = expr ``` we were incorrectly trying to call `resolveName` on just the `foo` portion to get the "local" symbol, which simply failed to resolve (or would have resolved to the wrong thing), but for this form, the local symbol is just the containing property access expression 11 March 2021, 15:23:19 UTC
3c576f1 fix(41027): handle unused static members (#41103) 11 March 2021, 14:39:20 UTC
5053b0b Update package-lock.json 11 March 2021, 06:24:57 UTC
f4d0ea6 Add target: ES2021 (#41239) * Support `target: es2020` * use CRLF * update symbols Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 10 March 2021, 21:31:25 UTC
b20331a Fix missing func modifier (#40379) * Fix missing function modifier * Update src/services/refactors/convertArrowFunctionOrFunctionExpression.ts Co-authored-by: Ron Buckton <ron.buckton@microsoft.com> Co-authored-by: Ron Buckton <ron.buckton@microsoft.com> 10 March 2021, 17:34:31 UTC
b1f86ec fix(42265): Error accessing abstract property in constructor via destructuring (#42276) 10 March 2021, 15:26:50 UTC
2e49e28 Update package-lock.json 10 March 2021, 06:24:41 UTC
acc8f2f Ensure that when new file affecting global scope is added, the signatures are updated (#43084) * Ensure that when new file affecting global scope is added, the signatures are updated * Update src/compiler/builder.ts * Better comment 10 March 2021, 01:40:02 UTC
6e4456b Optimize the size for tsbuildinfo (#43155) * Baseline readable buildinfo * Use file names as index in file name list This is extension of the idea given by @sokra to optimize size of tsbuildinfo * Deduplicate reference map lists and use file name index to sort them Different implementation of #43079 based on idea suggested by @sokra * Minimal json.stringify for the tsbuildinfo Again implementaion of suggestion by @sokra * Update src/testRunner/unittests/tsbuild/helpers.ts Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com> * Readable version of buildinfo all the time * Some renames for readability as per feedback Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com> 10 March 2021, 00:15:26 UTC
626e78c Clearifies protected error message (#42599) 09 March 2021, 23:58:31 UTC
3d53661 Don't inherit jsdoc tags from overloaded signatures (#43165) Previously, when getting jsdoc for signatures, the services layer would get the jsdoc tags for the base symbol of a signature if it was present. This is fine except when the base was overloaded. In that case, the multiple signatures of the overload would all contribute jsdoc, which is not correct. A more correct fix would be to resolve overloads to the base, but the compiler doesn't have this capability and adding it or jury-rigging it seems like it would be complex, inappropriate for a fix to ship in a patch version. Co-authored-by: Orta Therox <git@orta.io> Co-authored-by: Orta Therox <git@orta.io> 09 March 2021, 20:28:36 UTC
ec4863c Fix37991 (#43166) * Add failing test * Fix tslib check errors for commonjs imports 09 March 2021, 19:43:19 UTC
9610c16 fix(42380): include JSDoc comments in declarations for static/prototype methods (#42454) 09 March 2021, 19:37:40 UTC
d9f5a85 Update package-lock.json 09 March 2021, 06:24:45 UTC
4d50624 Update package-lock.json 08 March 2021, 06:24:47 UTC
f7cd702 Update package-lock.json 07 March 2021, 06:24:13 UTC
f918bd9 Exclude enum/number compatibility rule from comparable relation (#42472) * Exclude old number/enum literal compatibility rule from comparable relation * Add tests * Accept new baselines 06 March 2021, 14:52:00 UTC
ba56fca Remove undefined from optional properties when inferring to index signatures (#43086) * Remove undefined from optional properties when inferring to index signatures * Add tests 06 March 2021, 14:51:02 UTC
7394efc Update package-lock.json 06 March 2021, 06:24:11 UTC
612a96e Update parseInt parameter name and jsdoc (#42756) * feat(lib): improve parseInt type definition and docstring * Accepted baselines * update tests 05 March 2021, 19:23:08 UTC
25375a2 Unnecessary elaboration about not being assignable to type parameters (#42952) 05 March 2021, 19:15:05 UTC
408c804 Properly instantiate inferred constraints in conditional types (#42747) * fix combined type mapper in getConditionalType * Add regression tests 05 March 2021, 15:26:27 UTC
f0a72e2 Update package-lock.json 05 March 2021, 06:24:30 UTC
9862b03 Relax requirements on index signatures to 'any' when a type also contains a string index signature to 'any' (#43065) * Added test. * Accepted baselines. * Allow other index signatures to 'any' if there is a string index signature to 'any'. * Accepted baselines. 05 March 2021, 01:42:00 UTC
ca8d9e4 fix(39836): allow type declaration/unknown type in catch arguments in JavaScript files (#42392) 05 March 2021, 01:19:35 UTC
38fdce9 Expose 'reservedInNestedScopes' option when creating temp and loop variables (#43083) 04 March 2021, 23:37:45 UTC
e234f0c Update the DOM: March 03, 2021 (#43070) * Update the DOM: March 03, 2021 Mostly Typescript-DOM-lib-generator#915 * update baselines 04 March 2021, 14:28:00 UTC
1f6a8d7 Do a shallow clone for Docker tests. (#42966) * Do a shallow clone for docker tests. * Remove the 'pull' step from the Docker files. 04 March 2021, 06:35:48 UTC
3e05aa6 Update package-lock.json 04 March 2021, 06:23:49 UTC
15e69ac capture thisArg of optionalChaining in parens (#35494) Fixes: #35476 04 March 2021, 03:35:17 UTC
8a81a67 Merge pull request #43055 from armanio123/FixDefineForClassFields Filter transient flags to fix useDefineForClassFields 03 March 2021, 23:38:41 UTC
7751ecb fix receiver on calls of imported and exported functions (#35877) * fix receiver of imported and exported functions fixes: #35420 * Rebase against master and clean up substitution flow * Add evaluator tests * Fix evaluator tests Co-authored-by: Ron Buckton <ron.buckton@microsoft.com> 03 March 2021, 18:38:32 UTC
a8742e3 Update package-lock.json 03 March 2021, 06:24:15 UTC
652199a Added tests 03 March 2021, 04:38:37 UTC
6cd87d0 Delete old, different-case name of quickInfoJSDocTags.baseline (#43052) 03 March 2021, 01:43:20 UTC
0cf834c Move fixed chunk size polling as a watch option and move it out of server (#42542) * Move fixed chunk size polling as a watch option and move it out of server Fixes #41549 * Feedback 03 March 2021, 00:45:53 UTC
5dbb110 Baseline completions and signature help (#43049) * Initial implementation+first big transitions * about 10 more * Change baseline filename + more baselines 1. Use containing file name instead of first @Filename. 2. Switch the rest of the tests I need for @link over to baselines. * fix lint * Remove unused/incorrectly named fourslash baselines * fix incorrectly updated baselines * dedupe non-unique filenames * Add names to marker baselines Also rename another duped test filename. * Fix semicolon lint 03 March 2021, 00:33:32 UTC
f1c911b fix(43006): skip trivia in a function name (#43021) 03 March 2021, 00:32:28 UTC
c497b48 Add undefined to Symbol.valueDeclaration (#43033) * About halfway through the checker I'm going to merge with master to avoid clashing with the declaration fix. * Add undefined to Symbol.valueDeclaration Also add undefined to a number of utility functions that have always accepted it, but never added it to their type. * Fix lint from code review Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> * remove obsoleted fix from inferFromUsage Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 02 March 2021, 20:36:26 UTC
3d1c6e8 fix(42765): require should not work in ts files (#42792) * add failing test * fix(42765): require should not work in ts files 02 March 2021, 14:54:31 UTC
0b337f1 Update project.ts (#42900) 02 March 2021, 14:37:22 UTC
82de139 Fixed typo error. (#42816) * Fixed three typo errors * Reverted * Reverted * Fixed typo 02 March 2021, 14:36:31 UTC
2834737 typo (#42899) * Update editorServices.ts * Fix baselines Co-authored-by: Orta <git@orta.io> 02 March 2021, 14:35:11 UTC
2b95b5e Update package-lock.json 02 March 2021, 06:24:00 UTC
56f95d2 Only filter ignored paths from module specifier generation if there exists a better option (#43024) * Only filter ignored paths from module specifier generation if there exists a better option * Nit 02 March 2021, 00:12:03 UTC
4b67b4a Support go-to-definition for imports of arbitrary files (#42539) * Support go-to-definition for imports of scripts and arbitrary files * Support go-to-definition for non-existent files * Add missing file property * Use `isExternalModuleNameRelative` instead of `!pathIsBareSpecifier` * Add partial semantic test * Combine with symbol search for non-source-file file references * Fix and accept API baselines * Fix useless or * A definition is unverified if the file path was a guess, even if a source file has that path 01 March 2021, 23:15:09 UTC
aa67b16 Add undefined to Symbol.declarations' type (#42975) * Add undefined to Symbol.declarations' type Symbol.declarations now has type `Declaration[] | undefined`. I made a mistake somewhere in the checker related to JS checking, so there are quite a few test failures right now. * undo clever change to getDeclaringConstructor * Address PR comments 1. More early-returns. 2. More line breaks. 01 March 2021, 22:32:28 UTC
2a49cf7 Update package-lock.json. (#43028) 01 March 2021, 21:46:45 UTC
993c503 Add 'data' property to completion entry for better coordination between completions and completion details (#42890) * Add 'data' property to completion entry for better cooperation between completions and completion details * Add doc comment * Update API baselines * Add server test * Test session’s Full result * Fix tests * stableSort to fix server fourslash test * Explicit verification of data parameter 01 March 2021, 20:09:45 UTC
41b5abf Tracing: dump more information about types (#42962) * Tracing: dump more info about substitution types * Tracing: dump more info about reverse-mapped types * Tracing: dump more info about destructuring types * Tracing: dump more info about evolving-array types * Tracing: dump more info about tuple types * Tracing: dump more info about type references * Fix lint errors * Tracing: extract getLocation helper 01 March 2021, 17:22:15 UTC
c44b3ba Update package-lock.json 01 March 2021, 06:24:38 UTC
ef2c98f Optimize checking involving large discriminated union types (#42556) * No array literal subtype reduction when contextual type is present * Accept new baselines * Fast path in relations and filtering of pure discriminated union types * Create maps for mixed unions, but not for small or primitive only unions * Create many-to-many mapping with certain limits, also use in CFA * Use constituent maps in CFA for switch statements, cleanup, add comments * Revert change to apparent contextual type / better criteria for map eligibility * Deduplicate array literal element types * Accept new baselines * Filter in false case only when discriminant property has unit type * Only subtype reduce unions with less than 100 distinct types * Accept new baselines * Caching and quick discriminant checks in subtype reduction * Accept new baselines * Remove deduplication logic now that subtype reduction was optimized 01 March 2021, 00:38:20 UTC
1db6003 Update package-lock.json 28 February 2021, 06:23:59 UTC
3821ef0 Update package-lock.json 27 February 2021, 06:23:38 UTC
3c32f6e Fix preserveSourceNewlines sibling node comparison (fixes extra newlines in organize imports) (#42630) * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * Update package-lock.json * More sophisticated check for source position comparability * Fix organize imports by looking at the nodes positions * Rollback formatting changes * Added tests, fixed organizeImports algorithm * Fix autoformatting again * Make sibling node comparison work for all lists * Don’t run siblingNodePositionsAreComparable at all unless `preserveSourceNewlines` is true * Move getNodeAtPosition back * Optimize * Use node array index check instead of tree walk * Revert unneeded change Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> Co-authored-by: Armando Aguirre <armanio123@outlook.com> 26 February 2021, 18:37:51 UTC
68b0323 Refactor emit substitution into transform (#42676) * Refactor emit substitution into transform * Add reusable state machine for binary expressions * Allow emitBinary to use state machine for comments/sourcemaps * Switch core trampoline state back to arrays * Switch binder to parallel stacks, temporarily partially revert emitBinary * Add link to benchmark when posting perf results * Ensure work stacks are per-execution * Reenable comments and sourcemaps 26 February 2021, 07:01:41 UTC
df5ffc0 Remove special `any` assignability for numeric index signatures (#41660) * Only enable special assignability rule on string index signatures to 'any'. * Accepted baselines. * Added test. * Accepted baselines. * Renamed test files. * Add non-erroring version of bclas'subClassThisTypeAssignable01.ts' * Accepted baselines. Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> 26 February 2021, 01:36:09 UTC
2c5cee5 Fix: checkAliasSymbol crash when checking for @deprecated (#42971) * Fix: checkAliasSymbol crash when checking for @deprecated It's possible that we shouldn't be creating symbol with no declarations from non-homomorphic mapped types, but for 4.2, the right fix is to make the @deprecated-check in checkAliasSymbol ensure that target.declarations is defined. * Add bug number and accept baselines 26 February 2021, 00:26:16 UTC
ccdd688 Properly handle duplicate enum types in type inference (#42943) * Ensure no duplicates in named union list * Add regression test 25 February 2021, 21:54:14 UTC
a2f09ed Expose EncodedSemanticClassificationsRequest in protocol.d.ts (#42640) * Expose EncodedSemanticClassificationsRequest in protocol.d.ts * Adds the response for encoded semantic highlights too * Update types: * Also include classificationtype anyway * Fix feedback 25 February 2021, 21:40:52 UTC
576bfbd Use yarn resolutions to inject nightly TS version across whole workspace in fabric test (#42961) 25 February 2021, 19:12:09 UTC
fc64b77 Update editorServices.ts (#42951) 25 February 2021, 17:00:08 UTC
3b35522 Type lookup in getIntrinsicAttributestypeFromJsxOpeningLikeElement should match getIntrinsicTagSymbol (#42819) 25 February 2021, 06:36:04 UTC
5c0b839 Update package-lock.json 25 February 2021, 06:24:19 UTC
5c5d374 Merge pull request #42904 from a-tarasyuk/fix/42339 fix(42339): "import" missing in transpiled code when variable typed as `unknown` 25 February 2021, 02:25:53 UTC
0791bb0 Merge pull request #42332 from a-tarasyuk/fix/42259 fix(42259): Outline and breadcrumb show wrong namespace name 25 February 2021, 01:35:36 UTC
896a2b4 fix(42923): add go-to-definition on unresolved shorthand properties (#42924) 24 February 2021, 18:53:27 UTC
5f5437a Do not cache directory structure for symlinked directories (#42868) Fixes #42839 24 February 2021, 17:51:19 UTC
26bbdf1 Update package-lock.json 24 February 2021, 06:23:58 UTC
56cf2e6 Never-reducing intersections are not untyped function call targets (#42917) * Never-reducing intersections are not untyped function call targets * Don’t attempt to reduce union types 24 February 2021, 01:22:41 UTC
8d58c8d Base signatures resolve only the type parameters local to the signature, not all type parameters (#42703) 24 February 2021, 00:17:57 UTC
6da2625 Bail when comparing a specialized form of an already ongoing comparison (#42727) * When structurally comparing similar types, check if we are already in the middle of a more general comparison of those same types * Do the same, but with only string manipulations 24 February 2021, 00:13:59 UTC
c117c26 Refactor to simplify project references tsc-watch and tsserver tests (#42926) 23 February 2021, 19:27:16 UTC
2a01f92 Improve JSON parser error recovery (#42657) * Improve JSON parser error recovery * Add error baselines * Move tsconfig root checking out of common JSON checking function * Use new function in parseConfigFileTextToJson * Fix test * Replace non-null assertion with explicit debug assertion 23 February 2021, 17:31:09 UTC
9de8dbb fix(42833): add return type to methods with overloads (#42881) 23 February 2021, 14:24:47 UTC
b0474dd Update package-lock.json 23 February 2021, 06:23:56 UTC
c25d9e9 Fix regexes. (#42921) 23 February 2021, 06:02:02 UTC
67f55aa Extend the `MetaProperty` check to work for `new.target` too 23 February 2021, 00:33:01 UTC
d495957 Add missing MetaProperty stuffs Add missing parts in the binder and the checker to enable CFA + narrowing of `import.meta` values. Fixes #41468 23 February 2021, 00:33:01 UTC
87d10eb Eliminate well known symbols as a concept in the checker and rely on unique symbols (#42543) * Eliminate well-known symbols in the checker: 2021 edition * Actually update the lib text to say unique symbol, too (this is unneeded with compat code in place, but this makes goto-def make more sense) * Add test showing mismatched symbol constructor type interop * Add more test cases for some other related issues this fixes * Revert computed name change * Style comments 22 February 2021, 22:43:28 UTC
5a1d308 Combine multiple overloads into a single contextual signature (#42620) * When noImplicitAny is set, combine multiple contextual overloads into a single signature, rather than producing `any` and an error * Amalgamate intersection composite signature return types as intersections, rather than the prior exclusively union behavior * Add another example from an issue, albeit slightly modified * Fix newlines, add test from DT * Interior remodelling 22 February 2021, 21:34:47 UTC
74e3ad9 fix(42339): skip return if spread type is wrong 21 February 2021, 10:27:46 UTC
c7fa6e0 Update package-lock.json 20 February 2021, 06:23:19 UTC
f633446 Make 'calendar' and 'numberingSystem' open strings in es2020.intl. (#42886) 19 February 2021, 20:57:56 UTC
0ce5c4a improve isRequireVariableDeclaration parameters (#42865) One parameter is always called with `true`, so drop it. 19 February 2021, 17:34:05 UTC
36d021a Update package-lock.json 19 February 2021, 06:23:52 UTC
back to top