sort by:
Revision Author Date Message Commit Date
924c68c use cache for program creation on watch mode. (#49958) 10 August 2022, 23:56:54 UTC
90cfbae Make build info tolerant to json errors (#50265) * Make build info tolerant to json errors Fixes #49754 * Fix incorrect code 10 August 2022, 23:44:35 UTC
8a24fe7 Fix up code so we don't crash when TS itself is emitted with let/const (#50151) 10 August 2022, 20:38:38 UTC
b56483f Remove shims project (#50049) 10 August 2022, 18:49:59 UTC
7f1dc78 Simplify normalizeSlashes (#50154) 10 August 2022, 18:20:00 UTC
5fbf3b0 Don't treat object properties as potential JS contructors without JSDoc class tag (#49735) 10 August 2022, 18:19:19 UTC
382f0c3 fix: crashes when JSX.IntrinsicClassAttributes is an alias type close GH-50254 (#50257) 10 August 2022, 17:41:12 UTC
3c3909b update baseline (#50252) 10 August 2022, 08:52:59 UTC
5f64ae8 Update package-lock.json 10 August 2022, 06:07:48 UTC
35c6fbf JSDoc @type tag optional parameters (#48132) * JSDoc @type tag optional parameters * Don't repeat isInJSFile() condition * Exclude variable initializers * Add tests for class methods * Don't contextually type JS function declarations * Update Baselines and/or Applied Lint Fixes * Reword comment Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> 10 August 2022, 00:03:30 UTC
2513a2d Use binary search in file system cache (#50163) * Use binary search in file system cache Previously, we were linear searching a linear number of times, resulting in too many `toLowerCaseFileName` calls on Windows. * Use SortedArray types for clarity * Use insertSorted after making it return a flat * Drop redundant undefined * Correct copy-paste error 09 August 2022, 23:47:07 UTC
af90e70 feat(49903): omit declare on type declarations (#49925) 09 August 2022, 23:38:42 UTC
b94b299 fix CFA for BindingElement. #49759 (#49836) * fix CFA for BindingElement. #49759 * fix Parameter * fix controlFlowBindingPatternOrder * fix bindParameterFlow * add tests * refactor * refactor * refactor 09 August 2022, 23:37:39 UTC
dd98c17 Merge multiple symbols even when re-exported (#49987) * Merge multiple symbols even when re-exported As far as I remember, the target of `mergeSymbol` needs to be a merged symbol, not a symbol with a mergeId that points to mergedSymbol. However, mergeSymbolTable didn't check for this. I can't remember if symbol tables may contain symbols-with-mergeId. If they can, then mergeSymbolTable needs to call getMergedSymbol on the individual targets of the merge. That's what I did in this PR. * Call getMergeSymbol eagerly On the source, not target, of mergeSymbolTable's contents 09 August 2022, 23:36:53 UTC
abc2a35 Fix System module `export import =` (#49788) * Add more SystemJS test case * Fix System module `export import =` * Update test case 09 August 2022, 23:31:02 UTC
e5b400c Fix misleading Date constructor documentation (addresses #49350) (#49649) * Update month parameter to monthIndex and add docs for Date constructor Signed-off-by: jmorrison152 <jmorrison152@bloomberg.net> * Add baseline changes Signed-off-by: jmorrison152 <jmorrison152@bloomberg.net> * Fix misleading Date constructor documentation (addresses #49350) (#73) * Update month parameter to monthIndex and add docs for Date constructor Signed-off-by: jmorrison152 <jmorrison152@bloomberg.net> * Add baseline changes Signed-off-by: jmorrison152 <jmorrison152@bloomberg.net> * Update baselines 09 August 2022, 23:21:56 UTC
f70cb76 feat(49928): Provide quick fix for a missing callback function (#49930) * feat(49928): provide quick fix for a missing callback function * remove addFunctionDeclarationFromSignature. fix formatting * add tests 09 August 2022, 22:28:03 UTC
a123fc5 feat(lib/es2015): Add typed overloads to `Reflect` (#35608) Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 09 August 2022, 22:05:33 UTC
19e2a31 feat(49834): Suggestion: filter enum member ids from their own jsdocs (#49843) * feat(49834): omit self-referenced enum declaration in JsDoc * change code style 09 August 2022, 22:02:45 UTC
6aa9b87 Bump version to 4.9. (#50239) 09 August 2022, 20:33:52 UTC
6d163dc Update package-lock.json 09 August 2022, 06:06:46 UTC
0e17dc7 Fixed a false positive related to binding patterns and spread expressions (#49684) * Fixed a false positive related to binding patterns and spread expressions * Improve ancestor lookup when checking if an expression is spread into an object * Fixed ancestor lookup for more node types * Remove equality check for contextual types * Reformat code * Use `isWithinSpreadAssignment` flag + `objectsWithinSpread` cache instead of ancestor traversal * Revert "Use `isWithinSpreadAssignment` flag + `objectsWithinSpread` cache instead of ancestor traversal" This reverts commit be387e3bbf8a5cce2bc4c31fd77b061ea6cf8e0b. * Expand on the existing comment 09 August 2022, 00:01:50 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
back to top