https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
abfcdc2 Prototype implementation of umdExport/umdGlobal 12 August 2020, 02:10:20 UTC
57e2fe0 Improve deprecated suggestion node position (#39702) * Improve deprecated suggestion node position * fix typo * Simplify code * merge helper function 11 August 2020, 00:37:11 UTC
a80f60c fix export * as default syntax (#39803) * fix export * as default syntax * update comments 10 August 2020, 23:56:45 UTC
1ec71f0 Bind alias ThisProperty assignment declarations (#39908) * Bind alias ThisProperty assignment declarations This is a quick prototype that does the wrong thing at the wrong time with the wrong technique. * Preliminary checker handling for aliases Duplicative and untested, but I think I updated all the places that need updating. * new is error; old one should not have been removed * I don't even know what's happening with this test * cleanup and testing in the checker * binder: use lookupSymbolForNameWorker instead of mutable This should have about the same behaviour and is much easier to understand. Also refactor common code a bit. * Shorter name of lookupSymbolForName Once upon a time there was a parent/worker function, but now it's just a single function again. No need for the -Worker suffix. * remove oodate comment * fix switch-case-break lint * Refactor and move functions * Rename and improve type of getContextualTypeForAssignmentDeclaration 10 August 2020, 23:45:55 UTC
668bbc6 Export anonymous functions in 2 steps, declare as variable and then assign to exports. (#39820) * Preserve the variable name when exporting an arrow or anonymous function This allows the browser or node to properly name the (arrow) function * Updated tests to reflect previous change * Remove duplicated comment * Transforms variable.initializer using moduleExpressionElementVisitor * PR feedback: rbuckton - Use isArrowFunction and isFunctionExpression * PR feedback: rbuckton - Consider ClassExpresion, they can also be named based on the variable. 08 August 2020, 00:16:03 UTC
3328fdb Use isUncalledFunctionReference for aliases too (#39950) * Use isUncalledFunctionReference for aliases too Fixes bogus deprecated notices on imports of functions with deprecated overloads, but with some non-deprecated overloads. Fixes microsoft/vscode#104238 * Just check all declarations, don't call isUncalledFunction 07 August 2020, 17:07:55 UTC
dd09e87 Update CI node versions (#39940) Drop 8, add 14 06 August 2020, 21:14:21 UTC
91a7c35 Insert auto imports after header comment (#39924) * place first import after header * don't insert before non-header 06 August 2020, 20:33:29 UTC
fca9f45 Add missing 'importName' for private field helpers (#39932) 06 August 2020, 20:27:19 UTC
87a3b42 Handle empty package.json files (#39937) 06 August 2020, 18:04:21 UTC
e9f82e4 LEGO: Merge pull request 39927 LEGO: Merge pull request 39927 05 August 2020, 22:12:12 UTC
9ad3b47 LEGO: check in for master to temporary branch. 05 August 2020, 22:11:17 UTC
da5ff57 Renames in servermode per feedback (#39883) * Server mode renames as per feedback * More renames 05 August 2020, 19:19:15 UTC
7f4e1b6 Find tagless JSDoc as preceding token (#39912) 05 August 2020, 17:09:45 UTC
2ebdf9f LEGO: Merge pull request 39921 LEGO: Merge pull request 39921 05 August 2020, 16:11:30 UTC
a548e4f LEGO: check in for master to temporary branch. 05 August 2020, 16:10:40 UTC
5843851 LEGO: Merge pull request 39917 LEGO: Merge pull request 39917 05 August 2020, 10:11:38 UTC
7d11da1 LEGO: check in for master to temporary branch. 05 August 2020, 10:10:46 UTC
c9f05af Merge pull request #37891 from Neonit/jsDocIndentationPreservation Fix indentation preservation in JSDoc (#37717) 04 August 2020, 23:09:50 UTC
4c7ea8e LEGO: Merge pull request 39913 LEGO: Merge pull request 39913 04 August 2020, 22:12:00 UTC
c96bad2 LEGO: check in for master to temporary branch. 04 August 2020, 22:11:06 UTC
bcccae2 Handle the fact that noResolveResolution resolution is reused (#39889) Fixes #39795 04 August 2020, 20:33:27 UTC
6247364 LEGO: Merge pull request 39904 LEGO: Merge pull request 39904 04 August 2020, 16:11:33 UTC
3d9eb73 LEGO: check in for master to temporary branch. 04 August 2020, 16:10:42 UTC
2106b07 Rename and use the default ref instead of having a `workflow_dispatch` option 04 August 2020, 07:14:24 UTC
817dc52 Add an 'Update LKG' action (#39897) 04 August 2020, 07:05:24 UTC
d985e68 Bump version to 4.1. (#39894) * Bump version to 4.1. * Update baselines. 04 August 2020, 06:38:55 UTC
ed55e0c LEGO: Merge pull request 39896 LEGO: Merge pull request 39896 04 August 2020, 04:11:30 UTC
26d228c LEGO: check in for master to temporary branch. 04 August 2020, 04:10:42 UTC
773be79 Merge pull request #39892 from microsoft/make-uint8-constructor-backward-compatible Make numeric Array constructors take ArrayLikeBuffer union 03 August 2020, 23:55:17 UTC
1ed00c8 LEGO: Merge pull request 39891 LEGO: Merge pull request 39891 03 August 2020, 22:12:03 UTC
dec871b LEGO: check in for master to temporary branch. 03 August 2020, 22:11:07 UTC
065b83b Make numeric Array constructors take ArrayLikeBuffer union PR #38449 changed the second overload of the constructor for Int8, Uint8, Int32, Uint32, Int16, Uint16, Float, Float64 -Array so that it no longer includes `ArrayBufferLike`. It's just `ArrayLike<number>`. This is fine except in the case that the caller provides exactly `ArrayLike<number> | ArrayBufferLike`. This PR adds ArrayBufferLike back so that the union is once again accepted. This avoids a breaking change, in particular in one Microsoft-internal codebase. 03 August 2020, 21:56:55 UTC
ff2ff98 Update user baselines (#39857) Co-authored-by: typescript-bot <typescript@microsoft.com> 03 August 2020, 16:25:23 UTC
b28a504 LEGO: Merge pull request 39880 LEGO: Merge pull request 39880 03 August 2020, 16:11:33 UTC
d7fb2b6 LEGO: check in for master to temporary branch. 03 August 2020, 16:10:45 UTC
c05078e Update user baselines 03 August 2020, 04:44:41 UTC
7e93035 LEGO: Merge pull request 39868 LEGO: Merge pull request 39868 03 August 2020, 04:11:41 UTC
b092fb3 LEGO: check in for master to temporary branch. 03 August 2020, 04:10:44 UTC
aee78ac Add separate flag serverMode for server mode (#39735) * Add separate flag serverMode for server mode to allow back compatibility * Addressed code review feedback. Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 03 August 2020, 01:18:26 UTC
86a87c4 Limit auto import provider project size (#39855) * Limit auto import provider project size * Add test * Make option configurable * Fix test * Only bail when setting is auto * Fix other test * Update API baseline 03 August 2020, 00:47:49 UTC
9498978 In JS declaration emit, move imports painted in nested contexts to the root private context (#39818) * In JS declaration emit, move imports painted in nested contexts to the root private context * Add test for nathan 01 August 2020, 01:25:37 UTC
1b97d03 Update user baselines (#39502) Co-authored-by: typescript-bot <typescript@microsoft.com> 31 July 2020, 22:06:29 UTC
d3877d2 Redo in narrowing for intersections (#39637) * Redo in-narrowing for intersections Still need to carve out an exception for globalThis * exempt globalThis from `in` narrowing 30 July 2020, 21:58:22 UTC
32934a9 Merge pull request #39824 from microsoft/fix35484 Allow assignments to a narrowable reference to be considered narrowable 30 July 2020, 19:27:34 UTC
7119e2b The iteration type of overloaded iterator signatures derives from the intersection of their return types (#39722) 30 July 2020, 18:37:04 UTC
315b5f4 PR Feedback 30 July 2020, 18:13:58 UTC
faf128d Fix formatting scanner on JSX text that looks like trivia (#39718) * Fix formatting scanner on JSX text that looks like trivia * Combine if statements Co-authored-by: Andrew Branch <andrew@wheream.io> 30 July 2020, 17:56:14 UTC
bffe354 Issue35876: Give better error message when Classic Module Resolution with incorrect path (#38105) * added Error 5084 to diagnosticMessages.json * added test case errorForBareSpecifierWithImplicitModuleResolution1 to tests/cases/compiler * modified checker.ts to report error 5084 when classic resolution and incorrect path are used * added baseline changes * passes all test cases including src/testRunner/unittests/ tests * Update with feedback * Make it check whether it is the right module resolution kind * Use the right diagnostic message in tsserver tests Co-authored-by: Meera Shivakumar <mshivaku@umich.edu> Co-authored-by: Orta <git@orta.io> 30 July 2020, 17:45:29 UTC
a320e1b Make `getLocalSymbolForExportDefault` look harder for an export Look for a symbol that has a `.localSymbol` property instead of blindly using the first one. Fixes #37829. 30 July 2020, 17:09:21 UTC
b601487 Updates Uint8ArrayConstructor to match MDN documentation. (#38449) * Updates Uint8ArrayConstructor to match MDN documentation. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/Uint8Array ``` new Uint8Array(); // new in ES2017 new Uint8Array(length); new Uint8Array(typedArray); new Uint8Array(object); new Uint8Array(buffer [, byteOffset [, length]]); ``` While the previous constructors aren't significantly different from the new, it would prevent someone from doing `new Uint8Array(myBuffer, undefined, undefined)` since there was no overload that accepted undefined as a second parameter and buffer as first. Fixes #38446 * Fixes constructor defenition for all other typed arrays. * Renames property to `array` since it is no longer an `arrayOrBuffer`. 30 July 2020, 12:51:50 UTC
21963ce Restore reference change 30 July 2020, 01:41:05 UTC
4c90ba9 Temporary revert to compare user test baselines 30 July 2020, 01:13:27 UTC
bae111f fix(39245): change related diagnostic for missing rest parameter arguments (#39356) Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 30 July 2020, 00:25:13 UTC
b9db641 Allow assignments to a narrowable reference to be considered narrowable 29 July 2020, 23:37:25 UTC
9b2d487 Fix this-parameter emit for JSDocFunction types (#39814) * Fix this parameter emit for JSDocFunction types Previously, parameters with names that were not `new` were treated like rest parameters. This is incorrect: parameters with the name `this` should emit a `this` parameter. Fixes #38550 * :heart: quote style 29 July 2020, 21:11:59 UTC
f2d1531 Fix location for duplicate function implementation errors Use only the relevant declarations (by collecting them in the for loop), and use `declaration` if `getNameOfDeclaration` didn't work (useful for `export default` with anonymous functions). Fixes #39804. Also, use `nodeIsPresent` once, and a random `?.`. 29 July 2020, 20:07:00 UTC
03b6580 Make @enum,@this tag construction stricter (#39791) The type expression is required, so the type should reflect that. 28 July 2020, 20:49:42 UTC
8f04f91 Add diagnostic info to getNameForExportedSymbol crash (#39790) * Add diagnostic info to getNameForExportedSymbol crash * Add JS indicator 28 July 2020, 19:53:56 UTC
79e2ed2 Merge pull request #39776 from amcasey/OverloadErrors Reduce unnecessary error computation 28 July 2020, 17:35:22 UTC
1f1521c Undo accidental change from #39772 (#39779) * Undo accidental change * Delete test 27 July 2020, 23:55:59 UTC
68ba670 Add contextual type for generator return type (#39772) * WIP * Add contextual type for generator return type 27 July 2020, 22:14:47 UTC
5b2b70b Merge pull request #39774 from amcasey/Mocha Move off deprecated mocha types 27 July 2020, 21:54:14 UTC
6318cc6 Move off deprecated mocha types 27 July 2020, 21:29:19 UTC
195fad2 Reduce unnecessary error computation ...during overload resolution. Based on a trace that was spending 30% of a (very slow) overload resolution elaborating errors that were then dropped. 27 July 2020, 21:11:24 UTC
48e58f4 Handle unresolved baseType when trying to get completions for static member (#39731) * Handle unresolved baseType when trying to get completions for static member Fixes #38067 * Update src/services/completions.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * correct the condition Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 24 July 2020, 23:37:28 UTC
c5d21e7 Lower priority for speculative variadic tuple inferences (#39723) * Inference to [...T, X?] has lower priority than inference to [...T, X] * Update tests * Accept new API baselines 24 July 2020, 22:00:53 UTC
823b69a Fixes slow nav to issue by keeping project with result. (#39721) Also cache the result of config file name for open files Fixes #38491 24 July 2020, 20:33:25 UTC
73b268e Use new octokit API method in review request script (#39719) 23 July 2020, 22:43:48 UTC
2fb0436 LEGO: Merge pull request 39706 LEGO: Merge pull request 39706 22 July 2020, 22:11:58 UTC
7c5ed71 LEGO: check in for master to temporary branch. 22 July 2020, 22:10:54 UTC
ec33814 Make AutoImportProviderProject work with symlinked monorepos (#39679) * Hack everything together * Add test * Remove realpath from program * Ensure symlinked directories are directories * Revert unnecessary change * Update baselines * Use host program realpath on AutoImportProviderProject files before program creation * Which fixes hasRoots() too * Apply suggestions from code review Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> * Lint Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 22 July 2020, 20:53:30 UTC
312a6f0 Add a fastpath for comparing common mapped types like Pick which avoids manufacturing intermediate type identities (#39696) 22 July 2020, 18:59:16 UTC
b834096 Fix emit/formatting issues in refactors (#39506) * Fix #37948 * Fix formatter skipping tab/space fixup on comments, handle trailing commas in list closing line count. Fixes #37944 * Add newline between imports and main body of new file in moveToNewFile Fixes #37941 * Update baseline (probably broken before?) 22 July 2020, 17:31:42 UTC
e76d172 Fix 38219: signature helper works for optional function condition. (#39672) * fix optional fuction condition. * Adds a test Co-authored-by: Orta <git@orta.io> 22 July 2020, 16:30:21 UTC
8a05707 Fix 31995: make cached key more precise to avoid returning wrong cached value. (#39670) * fix 31995 * revert useless change only for debug. * add test 22 July 2020, 16:26:17 UTC
294a040 not escape unicode char for import path string. (#39463) * not escape unicode char for import path string. * fix test. 22 July 2020, 15:28:29 UTC
34adaaf Support loading of child project if found project is not pure solution has some of its own files and project references (#39613) * Use disableReferencedProjectLoad to stop loading child projects to allow users to disable loading large solutions Fixes #39144 * Handle indirect references * Support loading of child project if found project is not pure solution has some of its own files and project references Fixes #38605 * Fix grammar 21 July 2020, 22:02:10 UTC
e92afac Add disableReferencedProjectLoad to stop loading child projects to allow users to disable loading large solutions (#39593) * Use disableReferencedProjectLoad to stop loading child projects to allow users to disable loading large solutions Fixes #39144 * Handle indirect references * PR feedback 21 July 2020, 21:24:15 UTC
5484687 switch typeof any could be checked for unreachable (#39389) * switch typeof any could be checked for unreachable * fix stupid error * support unknown * remvoe use less code. * fix spelling. 21 July 2020, 17:51:27 UTC
d897646 fix 39453 (#39579) * fix 39453 * add restriction. * add tests * comment. * fix as suggestion. 21 July 2020, 16:40:25 UTC
56865f7 LEGO: Merge pull request 39682 LEGO: Merge pull request 39682 21 July 2020, 04:11:42 UTC
ea75b00 LEGO: check in for master to temporary branch. 21 July 2020, 04:10:47 UTC
94d6b45 Consistent errors on circular base types (#39675) * Properly track and report errors on circular base types * Accept new baselines * Add regression test 21 July 2020, 03:35:47 UTC
5ae4b5d Properly preserve numeric string named properties in declaration files (#39658) * Properly preserve names of properties with numeric literal strings * Accept new baselines 20 July 2020, 17:36:46 UTC
3b22339 Triple slash references must resolve against the resolved file name (.d.ts and not original source file) since they are rewritten in the .d.ts emit (#39645) * Add tests corresponding to repro from #37928 * Triple slash references must resolve against the resolved file name (.d.ts and not original source file) since they are rewritten in the .d.ts emit * Remove the scenario not fixed in this PR 17 July 2020, 23:25:32 UTC
92f41c8 tests(39373): add addition tests (#39631) 17 July 2020, 20:30:57 UTC
f19c610 Adds latest version of TypeScript to the repro code (#39641) 17 July 2020, 19:15:49 UTC
191f4f6 Explicitly add dependency on node to compiler tsconfig, remove es6+ string method usage (#39636) 17 July 2020, 14:02:05 UTC
5519027 Minor fixes to consmetic build issues in user test PR script 17 July 2020, 13:43:50 UTC
4e24b1b fix(39373): add diagnostic message about using a private name for class declarations without name (#39567) 17 July 2020, 00:05:33 UTC
1d671c3 Add twoslash repros to the compiler (#39628) 16 July 2020, 22:39:49 UTC
667ba74 Resolve only relative references in open files on syntax server (#39476) * Resolve only relative references in open files on syntax server * Support resolving tripleslash references only in the open file * Apply suggestions from code review Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 16 July 2020, 21:31:24 UTC
c07c885 fix(39515): fix getting a position for an element before the line break CRLF/LF on the line that contains 'after' element (#39554) 16 July 2020, 20:56:30 UTC
6430211 fix(38868): add separator for type parameters (#39621) 16 July 2020, 17:58:16 UTC
db79030 Support variadic tuple inference from trailing optional to non-optional (#39614) * Permit variadic tuple inference from trailing optional to non-optional * Add tests 16 July 2020, 00:46:48 UTC
b6f09cc Better error message for unparenthesized function/constructor type notation in union/intersection types (#39570) * add graceful error message for unparenthesized function types in union and intersection * add unparenthesizedFunctionTypeInUnionOrIntersection test * add unparenthesizedConstructorTypeInUnionOrIntersection test * Update src/compiler/parser.ts Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> * pass isInUnionType to parseFunctionOrConstructorTypeToError * Apply suggestions from code review Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * syntax fix * refactor isStartOfFunctionType into isStartOfFunctionTypeOrConstructorType * Update src/compiler/parser.ts Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> * hoist isUnionType Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 15 July 2020, 21:43:56 UTC
37e6e27 Do not resolve require calls in typescript files even if it contains dynamic import (#39617) * Existing tests showing require in ts file is not used for module resolution * Do not resolve require calls in typescript files even if it contains dynamic import Fixes #38611 15 July 2020, 21:31:55 UTC
f2c5643 Flag mapped types with circular property types and do not attempt to print them structurally (#39552) 15 July 2020, 18:19:43 UTC
fcd4fcb Use combined node flags (#39403) 15 July 2020, 16:22:12 UTC
back to top