https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
c28ee65 Revert "Better typings for Promise.resolve(), like #31117 (#33074)" This reverts commit 040c1216ff2e9398f648e5475533f1fa80d7aca1. 08 August 2022, 23:06:25 UTC
71e8529 LEGO: Merge pull request 50219 LEGO: Merge pull request 50219 08 August 2022, 10:00:51 UTC
4a98087 Update package-lock.json 08 August 2022, 06:06:51 UTC
3630994 LEGO: Merge pull request 50212 LEGO: Merge pull request 50212 07 August 2022, 11:59:36 UTC
7e42591 Update package-lock.json 07 August 2022, 06:06:32 UTC
96fe039 Update package-lock.json 06 August 2022, 06:08:54 UTC
bdb8514 Fix contextual typing on yield and return expressions in generator function (#49736) * add tests and initial fix * fix contextual return type in generator funcs * fix return statement contextual typing * filter using getiterationtypeofgeneratorfunctionreturntype * update baselines 05 August 2022, 18:24:43 UTC
5c1abd3 Update package-lock.json 05 August 2022, 06:06:36 UTC
a44354a fix(50188): omit QF on function arguments (#50189) 05 August 2022, 00:52:09 UTC
7afd14f Update error messages for CJS imports resolving to ES modules (#50088) * Update error messages for CJS imports resolving to ES modules * Update error message * Use package scope from source file * Update baselines * Issue error for JSX/TSX files * Switch from related info to message chain 04 August 2022, 23:58:13 UTC
b1176ce LEGO: Merge pull request 50179 LEGO: Merge pull request 50179 04 August 2022, 10:16:11 UTC
9499b6e Update package-lock.json 04 August 2022, 06:06:34 UTC
6bbe6d6 Fix return value and error reporting for getIterationTypesOfMethod (#50146) 03 August 2022, 23:07:29 UTC
bc7786b Ensure that file watcher is closed only once for affected file locations that share watcher because of different names but same real path (#50150) * Add test where clearing affected files watcher that also is shared by real path causes Debug failure * Ensure that file watcher is closed only once for affected file locations that share watcher because of different names but same real path * Lift up package json map 03 August 2022, 22:39:07 UTC
d6d2643 Add rule to auto-paren optional chain in normal prop or element access (#50156) 03 August 2022, 21:17:26 UTC
c82c9a9 Fix bugs in module specifier generation with `paths`/`typesVersions` (#49792) * Write a test and a huge comment * Finish fixing everything * Clean up comment * Remove obsolete comment * Fix comment trailing off * Optimize to hit the file system much less 03 August 2022, 20:58:15 UTC
59c91f6 fix(50077): skip convertOverloadListToSingleSignature refactoring if position is in function body (#50093) 03 August 2022, 20:56:42 UTC
a3a5e00 Downgrade es5-ext via overrides (#50061) 03 August 2022, 17:47:30 UTC
867512c Update package-lock.json 03 August 2022, 06:06:42 UTC
697935d Restore ordering of operations involving type parameters and unions (#50116) 03 August 2022, 04:32:41 UTC
040c121 Better typings for Promise.resolve(), like #31117 (#33074) * Better typings for Promise.resolve(), like #31117 * Add tests * Update to Awaited<T> * Fix issue with Awaited affecting jQuery, additional tests Co-authored-by: Ron Buckton <ron.buckton@microsoft.com> 02 August 2022, 17:39:50 UTC
8493ea1 Update package-lock.json 02 August 2022, 06:07:51 UTC
c0072aa fix(49935): omit parentheses in the operand of the unary expression (#50111) 01 August 2022, 21:22:45 UTC
55f2c0c No synthetic Awaited for unconstrained type when not a type variable (#50100) 01 August 2022, 21:19:15 UTC
394f51a Fix implied formats, file watching, new source file creating during edits (#50098) * Add test where module resolution cache is not local and hence doesnt report errors in watch mode * Ensure module resolution cache is passed through in watch mode * Remove unnecessary setting of impliedFormat which should anyways be done as part of create source file * Add test for packge.json changing and modifying implied format * Distinguish between package.json watch and affecting file location watch * Pass in failed lookup and affected file locations for source file's implied format Also stop creating options if we already have them * Add diagnostic for explaining file's implied format if based on package.json * Watch implied format dependencies for modules and schedule update on change * For program if implied node format doesnt match create new source file. Handle implied node format in document registry Fixes #50086 * Modify tests to show package.json being watched irrespective of folder its in * Check file path if it can be watched before watching package.json file * Because we are watching package.json files and failed lookups its safe to invalidate package json entries instead of clearing them out everytime program is created * Remove todos * Fix the incorrect merge * Pickup PackageJsonInfo renames from #50088 * Rename 01 August 2022, 19:41:37 UTC
427d436 Improve import type support for commonjs exports (#49745) * Improve import type support for commonjs exports This PR makes getTypeFromImportTypeNode a little more like getExternalModuleMember: for JS files, it now uses both `getTypeOfSymbol` and `getExportsOfSymbol`, and uses whichever one returns a symbol. This allows using arbitrary properties of a CJS export= as types in JSDoc; previously a special case in the binder enabled only CJS export= where all properties were shorthand assignments. Fixes #49195 * Add js types/value test case * Improve binding of CJS property assignments 1. Bind property assignments same as shorthand property assignments in module.exports object literal assignments. 2. Bind all such assignments, even if the object literal contains non-property assignments. This is different from before, and it requires slightly smarter code to prefer aliases when checking CJS imports. * Remove new binder code Just include the original fix * revert missed type in binder 01 August 2022, 17:57:38 UTC
e1ceb2e Update package-lock.json 01 August 2022, 06:14:56 UTC
a66a1a6 LEGO: Merge pull request 50110 LEGO: Merge pull request 50110 31 July 2022, 09:53:01 UTC
4f8c740 Update package-lock.json 31 July 2022, 06:06:24 UTC
14fb0b0 LEGO: Merge pull request 50104 LEGO: Merge pull request 50104 30 July 2022, 10:47:04 UTC
e56942b Update package-lock.json 30 July 2022, 06:06:37 UTC
ae7d232 fix(49869): throw an error on optional binding pattern parameter in JavaScript (#50094) 29 July 2022, 23:05:34 UTC
88a1e3a Transform decorators that reference private names into a 'static {}' block (#50074) 29 July 2022, 19:29:48 UTC
5374fd9 Add an additional test for favoring the asserted type in type predicate narrowing (#50065) * Add an additional test for favoring the asserted type in type predicate narrowing * Add requested test cases 29 July 2022, 19:12:33 UTC
4caa3f1 LEGO: Merge pull request 50091 LEGO: Merge pull request 50091 29 July 2022, 10:24:47 UTC
cc450cf Update package-lock.json 29 July 2022, 06:06:35 UTC
1490037 fix dts generation of jsdoc (#49904) 29 July 2022, 00:44:23 UTC
5d79052 Pass correct module resolution state when reading package.json info so that they are correctly tracked in the resolution (#50085) 29 July 2022, 00:19:10 UTC
949fffb feat(47983): Negative tuple index access should not be allowed (#49901) * feat(47983): disallow negative integers for indexing tuple * change error message * add additional tests 28 July 2022, 21:22:13 UTC
b7355e3 Fix trailing formatting edit when range ends mid-token (#50082) 28 July 2022, 19:11:22 UTC
c9586f3 Update package-lock.json 28 July 2022, 06:07:16 UTC
94bb950 feat(49358): use filename based on exported name (#49875) 27 July 2022, 22:41:31 UTC
5b0eea4 Report error only on local declaration with additional related information (#49746) * Add test where the errors are reported in different file Test for #49739 * Report error only on local declaration with additional related information Fixes #49739 * Handle existing tests 27 July 2022, 22:31:45 UTC
c0461be Update pr_owners.txt Add Navya 27 July 2022, 22:12:08 UTC
1361567 Update to npm 8, pin in package.json via volta and corepack (#49941) 27 July 2022, 21:02:24 UTC
8d0c72d Normalize effective constraint intersection before checking if source is a part of it (#49956) 27 July 2022, 17:06:01 UTC
adfb20f Don't uninstall typescript before npm ci in GHA (#50062) 27 July 2022, 16:42:22 UTC
df58836 Use proper type for result of resultModuleNamesReusingOldState (#50012) 27 July 2022, 16:30:52 UTC
a4507c9 Favor asserted type in type predicate narrowing (#50044) * Favor asserted type in type predicate narrowing * Accept new baselines 27 July 2022, 00:39:35 UTC
ebd42ab Account for type parameters in missing function codefix (#49727) * Account for type parameters in missing function codefix * Apply suggestions from code review Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * WIP * Synthesize new type parameters instead of deep unions and intersections * Pass along type parameter constraints * E.T. phone home * Clean up comments just a bit * Only widen the instance type sometimes Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 26 July 2022, 22:22:19 UTC
78e2bfd Fix(49525): Adds documentation for the Proxy type. (#49674) * Adds documentation for the Proxy type. * Removed trailing whitespace. * Addresses PR feedback. * Removes trivial comments and adds descriptive names. 26 July 2022, 20:25:10 UTC
3afe2d6 Resolve parsingContextErrors TODO (#50011) * Add a test with broken code * Resolve TODO 26 July 2022, 15:59:06 UTC
bcd22b4 fix(50048): remove token name from id (#50051) 26 July 2022, 08:13:04 UTC
b5b02ee Walk tokens with the correct walker (#50042) 25 July 2022, 21:26:00 UTC
12dbdf0 Parse parameter decorators outside of Await context when appropriate (#50040) 25 July 2022, 21:17:27 UTC
a179e91 Update package-lock.json 25 July 2022, 06:06:48 UTC
4026c6f Properly handle null and undefined in getCommonSupertype (#50021) * Properly handle null and undefined in getCommonSupertype * Add tests * Add more tests 24 July 2022, 15:09:14 UTC
165a1c4 LEGO: Merge pull request 50024 LEGO: Merge pull request 50024 24 July 2022, 10:31:04 UTC
966e732 Remove uses of visitNodes and visitNode in visitEachChild (#49992) 23 July 2022, 02:35:39 UTC
6aefc1d More fixes to uncalled function checks in && expressions (#49868) 22 July 2022, 23:06:16 UTC
4e23f51 Protect watcher from double close (#49990) 22 July 2022, 20:32:16 UTC
455ea9b fix(49964): handle auto-import dependencies/omit duplicate constraints (#50004) 22 July 2022, 18:01:43 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
back to top