https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
c7b2942 Add regression test 22 July 2022, 23:44:33 UTC
97bfeab Accept new baselines 22 July 2022, 23:39:59 UTC
823b220 Non-fresh {} is not a subtype of { [x: string]: xxx } 22 July 2022, 23:38:26 UTC
7b76416 Fixed closing JSDoc when adding multiple blocks (#49888) * Fixed closing JSDoc when adding multiple blocks * Fixed linting errors * Refactored to use `some` Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * Removed empty lines Co-authored-by: Armando Aguirre <araguir@microsoft.com> Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 21 July 2022, 20:16:40 UTC
5d2e62a fix(49854): fix start index to emit statements after super (#49858) 20 July 2022, 23:02:30 UTC
5702941 fix(49719): Incorrect error 2301 when using ES standard class properties (#49725) * fix(49719): omit TS2301 error with enabled usedefineforclassfields * show error for target lower than esnext with useddefineforclassfields enabled * change target from esnext to es2022 20 July 2022, 21:36:35 UTC
2f51a9e Update DOM lib for 4.8 RC (#49976) 20 July 2022, 18:37:57 UTC
2644fb0 Update package-lock.json 20 July 2022, 06:07:22 UTC
f6ac109 fix(49704): Code folding not working in file with simple syntax error (#49743) * fix(49704): parse type arguments in super call expression * omit duplicate errors 19 July 2022, 23:26:56 UTC
7f3ca9f Copy type parameters to function with @type tag (#49960) * Copy type parameters to function with @type tag Previously, type references to generic types would fail to copy type parameters from type references in an `@type` tag. Now the type parameter is copied. Note that I left 3 places in the checker unchanged, even though they should technically also get type parameters from type refereneces: 1. getOuterTypeParameters -- not fixing this means that nested function still won't get instantiated correctly. I'll see how hard this is to fix. 2. getLocalTypeParameterOfClassOrInterfaceOrTypeAlias -- only applies to constructor functions which have a type annotation, which doesn't type check in the first place. 3. isThislessType -- This function is conservative, so should be possible to make it more conservative without writing a lot of code. Fixes #49039 * Update API baselines 19 July 2022, 22:40:53 UTC
aba867d Clean up inference of type parameters, contravariant types (#49915) 19 July 2022, 22:30:48 UTC
8402d65 Document order-dependence of isLocal flag (#49959) 19 July 2022, 21:38:35 UTC
5a53e9b fix(49838): "Extract function" refactoring action is disabled for a wrong reason (#49840) * fix(49838): allow extracting functions with a break statement inside loop context * remove useless flag * add more tests 19 July 2022, 20:06:45 UTC
298b3a4 Update package-lock.json 19 July 2022, 06:08:11 UTC
05d2076 Don't leak EvolvingArray out of code flow (#49943) 19 July 2022, 02:00:18 UTC
3863cc4 feat(49786): show completions in expression with type arguments (#49810) 18 July 2022, 21:55:15 UTC
91f7cfc fix(49392): show optional class methods with enabled strict option (#49768) 18 July 2022, 21:49:13 UTC
efbe03a check base constraint when checking operand of plus (#49918) 18 July 2022, 16:42:50 UTC
aa2b235 Update package-lock.json 18 July 2022, 06:06:43 UTC
481357a Update package-lock.json 16 July 2022, 06:06:22 UTC
2c68ded Improve narrowing logic for `instanceof`, type predicate functions, and assertion functions (#49625) * Improve narrowing logic for instanceof, type predicates, and assertions * Accept new baselines * Add tests * Tweak algorithm * Accept new baselines * Optimize for discriminated unions 16 July 2022, 00:01:55 UTC
4f29633 Update package-lock.json 15 July 2022, 06:06:35 UTC
cf3af3f Properly propagate ObjectFlags.NonInferrableType, clean up non-inferrable code paths (#49887) 15 July 2022, 01:33:09 UTC
4902860 Fix(49472): Added docs for Set and Map types (#49522) * wip: started map object * Feat: Added docs on collection objects * Accepted baselines. * Accepted baselines. * fix: removed unecessary comments * Adjusted JSDocs as requested * fix: adjusted more comments * fix: removed params without description 14 July 2022, 23:59:05 UTC
cd3bd55 Fixed an issue with generic naked T not being allowed as async generator's return (#49023) 14 July 2022, 22:51:03 UTC
a21024d Delete unused code in object literal binding (#49879) It doesn't do anything anymore. I'm not sure what it used to do; it's been there basically forever. 14 July 2022, 20:22:14 UTC
bb913f8 Update package-lock.json 14 July 2022, 06:06:42 UTC
2ef3901 Fixed initializaiton-time inference for class properties assigned through element access (#49374) 13 July 2022, 21:43:23 UTC
6aad28f Update package-lock.json 13 July 2022, 06:08:21 UTC
8e6e87f 🐛 Fix smart selection of propery signatures having JSDoc comments (#49804) * 🐛 Avoid grouping JSDoc nodes of propery signatures with others in smart selection Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> * ⚗️ Add test case for JSDoc smart selection (#39618) Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> * ⚗️ Add test baseline for JSDoc smart selection (#39618) Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com> * 🐛 Fix skipping SyntaxList first child's JSDoc in smart selection Signed-off-by: GitHub <noreply@github.com> * ⚗️ Add tests to ensure not skipping first SyntaxList child's JSDoc Signed-off-by: GitHub <noreply@github.com> * 🔨 Exclude JSDoc token from tokens pivoting property signature Signed-off-by: GitHub <noreply@github.com> * ⚗️ Update test case to also include modifier Signed-off-by: GitHub <noreply@github.com> * ⚗️ Update test case reference baseline Signed-off-by: GitHub <noreply@github.com> 12 July 2022, 16:04:21 UTC
1260081 Update package-lock.json 12 July 2022, 06:07:59 UTC
695b24d Move DebugTypeMapper to debug.ts (#49864) * Move DebugTypeMapper to debug.ts * export `DebugType` 11 July 2022, 20:25:33 UTC
1622247 Update package-lock.json 09 July 2022, 06:07:13 UTC
28dc248 Update package-lock.json 08 July 2022, 06:07:03 UTC
c289718 Defer types like `keyof (T & {})` (#49696) * 'keyof undefined' and 'keyof null same as 'keyof never' * Update tests * Defer types like `keyof (T & {})` * Restore test * Update test * Accept new baselines * Add tests 07 July 2022, 21:54:22 UTC
2eaf49f Handle pseudo-references in getFlowCacheKey (#49828) * Handle pseudo-references in getFlowCacheKey * Add tests * Accept new baselines 07 July 2022, 21:53:30 UTC
9dde56c Add path completions for package.json exports with wildcards (#49644) * Support path completions for exports wildcards * Break up results by directory * Share code between typesVersions and exports processing * Revert completion kind change * Add kinds to tests * Update existing test * Support nested conditions, improve recursive globbing 07 July 2022, 19:26:18 UTC
fefe220 Fixed outdated expectation comments (#49691) 07 July 2022, 18:45:52 UTC
f6684be fix: correct name length criterion for spelling fixes (#49575) Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com> 07 July 2022, 16:08:37 UTC
59238db Make contextFlags an explicitly required parameter (#49720) 06 July 2022, 23:11:39 UTC
8ae1e9e fix(49685): omit incorrect visibility error when setter precedes getter (#49697) 06 July 2022, 22:59:05 UTC
7584e6a fix(49642): resolve JsDoc comments/tags if accessors exist in symbol declarations (#49654) 06 July 2022, 22:41:50 UTC
94a6576 Add debug format helpers for more enums (#49732) 06 July 2022, 22:35:57 UTC
9872184 Remove dependence on `module` compiler option to consider mts/cts files always modules (#49815) 06 July 2022, 20:26:36 UTC
eb430f2 More documentation on the impliedNodeFormat SourceFile field (#49816) 06 July 2022, 20:25:58 UTC
af70f24 Always resetErrorInfo if structuredTypeRelatedTo succeeds (#49718) 06 July 2022, 19:57:01 UTC
8002369 Protect against a language service host mutating its underlying source for `getScriptFileNames` (#49813) * Protect against a language service host mutating its underlying source for `getScriptFileNames` * Add comment 06 July 2022, 17:49:01 UTC
8687940 Add visible alias statements for non-visible binding patterns when emitting declaration (#48869) 06 July 2022, 17:08:17 UTC
0f86803 Constrain infer type parameters made to preserver distributivity for inlined homomorphic mapped types (#49793) 06 July 2022, 16:32:37 UTC
e2e3c12 fix(49544): allow comma token after accessors (#49545) 06 July 2022, 15:54:54 UTC
0bc2b65 Retire $ExpectError awareness from DefinitelyTypedRunner (#49756) 06 July 2022, 15:43:39 UTC
641ab8e Infer rest type without using assignContextualParameterTypes (#49740) 06 July 2022, 15:27:56 UTC
e75b25a Update package-lock.json 06 July 2022, 06:08:31 UTC
1f0d0f7 Set Error.prototype.cause type to unknown (#70) (#49639) Signed-off-by: Abdul-Azeez Lawal <abdul-azeez.lawal@outlook.com> 05 July 2022, 22:43:43 UTC
2876f3a Minor fixes (#49791) * Fix operator precedence * Tidy up some conditions with statically knowable values 05 July 2022, 22:02:14 UTC
cdc1996 fix(49426): Object method snippet completions incorrectly add this parameters (#49757) * fix(49426): omit this parameter * add OmitThisParameter to TypeFormatFlags * change flag value 05 July 2022, 18:46:19 UTC
2f26088 Cache results of expensive repetitive type operations (#49760) 05 July 2022, 17:02:32 UTC
501e442 Elide import equals in transpileModule if referenced only by export type (#49664) * Elide import equals in transpileModule if referenced only by export type. * Revise approach to avoid marking alias in export type as referenced. * Handle type only export specifier. 05 July 2022, 16:08:43 UTC
3dbe62e Update package-lock.json 05 July 2022, 06:06:24 UTC
2613158 Update package-lock.json 04 July 2022, 06:07:53 UTC
5d65c4d Update package-lock.json 03 July 2022, 06:06:30 UTC
1b9c8a1 Update package-lock.json 02 July 2022, 06:07:25 UTC
c6ff5f3 Fix for Awaited<T> inference (#49748) 01 July 2022, 22:00:54 UTC
ad4ded8 Update package-lock.json 01 July 2022, 06:06:20 UTC
f8aa570 Get type arguments lazily for instantiating inferred type parameter constraint (#49744) * Get type arguments lazily for instantiating inferred constraint * Use new deferred type mapper 30 June 2022, 23:23:07 UTC
4c34f2c Fix mapper used to instantiate distributive conditional manufactured in declaration emit (#49737) 30 June 2022, 22:03:25 UTC
c251d60 Instead of storing timestamp of when last d.ts file was modified, store its name so buildinfo becomes portable again (#49717) * Store dts change file path in buildinfo * With composite, do not write d.ts files if they changed * Determine dts change based on outputs * Instead of storing time in buildinfo store filename which was last updated to get modified time stamp from * Get declaration time change lazily * Rename per feedback 30 June 2022, 16:49:27 UTC
93f2d2b Add variance results to tracing, capture variance verification on annotated type params (#49712) * Add variance results to tracing * Tweak format, prohibit `results` on `E` events 29 June 2022, 23:30:57 UTC
bd11ce2 Fixed an issue with self-referential awaited union (#49677) 29 June 2022, 20:01:36 UTC
52f4055 For missing constraint quickfix insert position, Use node name end rather than related span end (#49673) 29 June 2022, 18:46:42 UTC
cba184f Demote priority of JS completions (#49716) * Demote priority of JS completions Fixes #48498 Unchecked JS files gather identifier-based completions. Currently, this search happens instead of `getCompletionEntriesFromSymbols` for TS/checked JS files. However, identifier-based completions are much lower quality and can be ignored by some editors. Identifier-based completions should be gathered last, after gathering other completions. That's what this PR does. * Invert isUncheckedFile to avoid double negative * dedupe calls to getCompletionEntriesFromSymbols * Stop re-creating list of entry names * more deduping + fix lint 29 June 2022, 18:05:50 UTC
63d0574 Update package-lock.json 29 June 2022, 06:06:27 UTC
b379e7f Pass contextFlags when getting contextual type of JSX elements/attributes (#49707) 28 June 2022, 21:40:26 UTC
1eb276f Add reference to TypeScript-Compiler-Notes in CONTRIBUTING.md (#49689) I tried a lot in the past few weeks to find a documentation on TS Compiler, I couldn't find any. I opened an issue asking for the documentation: https://github.com/microsoft/TypeScript-Website/issues/2428 and then I got to know the TypeScript-Compiler-Notes repository. I believe it could help a lot if it was in CONTRIBUTING.md file. 28 June 2022, 21:32:59 UTC
2f86a83 Fix mis-completed variable name in tracepoint (#49715) 28 June 2022, 21:32:44 UTC
7e91485 Use value meaning for computed property name for visibility check (#49678) * Test * Use value meaning for computed property name Fixes #49562 27 June 2022, 22:16:33 UTC
df21926 To handle d.ts emit errors that could affect other files, in incremental mode use d.ts emit text + diagnostics as signature of the file (#49543) * Add test when declaration emit has errors and d.ts emit doesnt change which results in incorrect incremental behaviour * Refactor * Use declaration diagnostics in the d.ts signature for the file so it can be more accurate for detecting changes to file that could affect other files Fixes #49527 * Renames and clarifications * Simplify serialize declaration diagnostics for signature purpose Do not serialize file name if error is in same file we are emitting. this should avoid having to do file path computation in most cases. Locations are start and length instead of line and character. Do not use any indents * Fix baselines 27 June 2022, 22:02:11 UTC
8ed846c Reuse start position in binarySearchKey (#49641) * Reuse start position in binarySearchKey * Kick out early if end < position 27 June 2022, 21:31:22 UTC
2bc91a6 Fix parser TODO (#49679) 27 June 2022, 16:05:41 UTC
4899116 Update package-lock.json 26 June 2022, 06:07:53 UTC
569cdf1 Disallow expression with type parameters as left side of property access (#49464) 24 June 2022, 22:54:21 UTC
ad6d086 Add case to capture enum subtype reduction * Add case to capture enum subtype reduction Signed-off-by: Lawrence Craft <lcraft6@bloomberg.net> 24 June 2022, 20:04:44 UTC
020ef41 Add a simple queue implementation with better performance than `Array.shift` (#49623) * Add a simple queue implementation with better performance than `Array.shift` This lets us clean up the hack introduced in #49581 * Correct typo Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> 24 June 2022, 17:07:28 UTC
b24b6a1 fixes #49491 (#49493) 22 June 2022, 20:25:01 UTC
8636adb fix(49449): change error location when passing objects/arrays to an argument of type (#49593) 22 June 2022, 17:06:01 UTC
71b5bdf Ensure resolved signature is cached before processing call errors (#49598) 21 June 2022, 20:15:03 UTC
9f2ab7f Fix(49473): Added docs for RegExpMatchArray (#49499) * fix: added docs for RegExpMatchArray * Accepted baselines. * Accepted missing baselines. * Accepted missing baselines pt2. 21 June 2022, 19:30:07 UTC
db49c6c Add `fractionalSecond` part type to DateTimeFormat().formatToParts (#49569) * Add fractionalSecond part type to DateTimeFormat().formatToParts This change adds the `fractionalSecond` part type as a valid part to be returned from Intl.DateTimeFormat().formatToParts(). Fixes microsoft#48882 * fixup 21 June 2022, 14:52:24 UTC
529ba99 Use separate marker types for variance annotation validation (#49616) * Use separate marker types for variance annotation validation * Add regression test 21 June 2022, 13:42:10 UTC
4c2770d Update package-lock.json 21 June 2022, 06:06:24 UTC
74d76e9 fix(49546): create computed property name for symbol props (#49554) 20 June 2022, 20:46:47 UTC
c01afb5 fix(49548): show completions after keywords in block (#49600) 20 June 2022, 19:52:28 UTC
7eddb3a LEGO: Merge pull request 49612 LEGO: Merge pull request 49612 20 June 2022, 09:59:46 UTC
96d298c LEGO: Merge pull request 49602 LEGO: Merge pull request 49602 19 June 2022, 10:01:39 UTC
730e611 LEGO: Merge pull request 49599 LEGO: Merge pull request 49599 18 June 2022, 10:16:49 UTC
d7e58c8 Fix arrow expressions in conditional expressions, take N+1 (#49531) 17 June 2022, 23:34:27 UTC
6004b35 Update 4.8 DOM from Typescript-DOM-lib-generator (#49596) 17 June 2022, 22:01:44 UTC
7e7c539 Add TS Server option to exclude files from auto-imports (#49578) * Basic functionality * Add tests * Add test for ambient modules * Add to protocol 17 June 2022, 21:39:51 UTC
1213c35 Add error when importing/exporting types in JS files (#49580) * Add error when importing/exporting types in JS files * Ignore type-only imports, update other baselines * Clean up 17 June 2022, 21:39:24 UTC
9f1983d Downgrade node-fetch back to v2 (#49592) 17 June 2022, 18:19:42 UTC
back to top