https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
416323d Merge branch 'main' into dump-variances 26 October 2021, 15:06:24 UTC
e1a2c2c Update package-lock.json 26 October 2021, 06:07:59 UTC
3519af0 Fix crash pulling on global types before they're initialized (#46471) * Add failing test * Dumb fix * Compute error message info more lazily * One more laziness 25 October 2021, 17:53:41 UTC
6b6665e LEGO: Merge pull request 46520 LEGO: Merge pull request 46520 25 October 2021, 17:13:29 UTC
61f5ceb Fix isNewIdentifierLocation after generator (#46491) 25 October 2021, 06:49:31 UTC
7799113 LEGO: Merge pull request 46510 LEGO: Merge pull request 46510 25 October 2021, 05:14:38 UTC
e88e596 LEGO: Merge pull request 46504 LEGO: Merge pull request 46504 24 October 2021, 17:14:16 UTC
dd89e06 LEGO: Merge pull request 46502 LEGO: Merge pull request 46502 24 October 2021, 11:13:27 UTC
c2a4bda LEGO: Merge pull request 46501 LEGO: Merge pull request 46501 24 October 2021, 05:14:29 UTC
1055119 LEGO: Merge pull request 46496 LEGO: Merge pull request 46496 23 October 2021, 17:14:28 UTC
cb07891 Update package-lock.json 23 October 2021, 06:06:04 UTC
907fc72 Fix auto import crash on weird JS aliasing (#46490) * Fix auto import crash on weird JS aliasing * Comment up the weird test * Fix setting members on union/intersection type, happens later 22 October 2021, 23:09:32 UTC
334b8ea Bind assignments to 'this' within static blocks in JS files (#46472) * Add failing test case. * Handle 'this' assignments on class static blocks in JavaScript. * Accepted baselines. 22 October 2021, 22:44:35 UTC
de1ac81 Fix isNewIdentifierLocation after async (#46485) 22 October 2021, 19:28:04 UTC
ce676d0 fix(46433): forbid using keywords as parameter names (#46459) 22 October 2021, 16:58:01 UTC
449aaa1 Defer computation of isDistributionDependent to avoid circularities (#46474) * Defer computation of isDistributionDependent to avoid circularities * Accept new API baselines 22 October 2021, 16:13:54 UTC
65ae16c Update package-lock.json 22 October 2021, 06:06:14 UTC
f2f35ae Simplify relationship check for conditional type on target side (#46429) * Simplify relationship check for conditional type on target side * Accept new baselines * Better support for non-distribution-dependent types * Accept new API baselines * Accept new baselines 22 October 2021, 00:35:23 UTC
bd12ae2 fix(46466): add missing async keyword before type parameters (#46467) 21 October 2021, 22:56:45 UTC
18b0fc0 Dump variance to stdout 21 October 2021, 21:57:14 UTC
55b4928 Pass absolute path to directoryExists (#46086) * Pass absolute path to directoryExists As pointed out by @gretzkiy, the `directoryExists` call added to `matchFiles` in #44710 should have been passing the absolute path (since the current directory might not match `currentDirectory`). * Add test, simplify/clarify/fix matchFiles and friends Co-authored-by: Andrew Branch <andrew@wheream.io> 21 October 2021, 19:22:53 UTC
5725cfe Fix typos in es5.d.ts (#46321) 21 October 2021, 18:59:01 UTC
22f37cd Fix ordering of module specifiers based on package.json presence (#46437) * Add failing test * Fix ordering of module specifiers based on package.json presence 21 October 2021, 18:43:57 UTC
f2e5947 @link parses trailing <...> as part of linkName (#46450) Similar to #46428. Fixes #44818 21 October 2021, 00:01:01 UTC
0d02213 LEGO: Merge pull request 46451 LEGO: Merge pull request 46451 20 October 2021, 17:13:33 UTC
98b4ac2 @link: format trailing () as part of linkName (#46428) Parsing separates the identifier part of the link tag from its text, but the editor should present an identifier followed by `()` as a single identifier since people use that syntax as a function sigil. I prefer `#'` personally, you know, xkcd 297, nudge nudge. 20 October 2021, 15:36:40 UTC
48e96f5 LEGO: Merge pull request 46447 LEGO: Merge pull request 46447 20 October 2021, 11:31:11 UTC
dea4853 Update package-lock.json 20 October 2021, 06:06:17 UTC
248d478 Remove defaultValueDescription: "n/a" from options (#46280) * Remove defaultValueDescription: "n/a" from options * CommandLineOption type <-> defaultValueDescription * Require defaultValueDescription of number/boolean options 19 October 2021, 22:19:19 UTC
53fa2a6 LEGO: Merge pull request 46430 LEGO: Merge pull request 46430 19 October 2021, 17:13:07 UTC
56b6279 Improve logic for choosing between co- and contra-variant inferences (#46392) * Improve logic for choosing between co- and contra-variant inferences * Add tests 19 October 2021, 16:58:10 UTC
fd6552a LEGO: Merge pull request 46424 LEGO: Merge pull request 46424 19 October 2021, 11:15:18 UTC
556098e Avoid hard-wired build-tree paths Instead, search for stuff up the directory tree, with the main functionality being to look for `Gulpfile.js` and assume the resulting directory is the root. (Unfortunatley, this is implemented twice, one in `scripts` and another in `src`. It's not possible to use a single implementation for both since that would require assuming a directory structure which this is intended to avoid.) Also, in `scripts/build/projects.js`, abstracdt common exec functionality into a local helper, and use full paths based on the above search instead of assuming relative paths assuming CWD being in the project root. 18 October 2021, 21:43:45 UTC
7c3f607 `scripts/build/utils` simplify exec Using shell-based execution is always a bad idea; this thing didn't do that via an option, but instead did it manually by constructing a shell command so it suffers from the same diseases. Perhaps there was need for this at some point in the past, but things are pretty robust now, so there's no need to avoid running the command normally. The only thing that is needed is to add `which` which also handles windows executable suffixes. I tried this with a fresh clone on windows, where the tree and TS are installed in paths that have spaces, and everything works as it should. 18 October 2021, 21:43:19 UTC
605788d LEGO: Merge pull request 46415 LEGO: Merge pull request 46415 18 October 2021, 17:29:16 UTC
8d715ff Error on mapped type w/properties (#46346) * Error on mapped types with properties 1. Error on properties of type literals with computed properties whose name is a binary expression with `in`, because that's a good sign of a mapped type. 2. Parse following properties on mapped types, and error on them. 3. Stop checking computed property names in (1) to avoid producing errors based on misinterpreting mapped type syntax as an expression. * add comment in types.ts * Update API again * Check interfaces and classes too * Add missed check in updateMappedTypeNode 18 October 2021, 16:00:00 UTC
26aea0d Update package-lock.json 17 October 2021, 06:07:02 UTC
39ff156 Changes to enable the module conversion script * shorthand -> long for `factory` since the typeformer script doesn't know how to handle it. * Use setter to change `ts.sys` (similar to #35399). * Fix `loggedIO` with empty namespaces to indicate dependency (similar to 50603eda). * Move `Map` / `Set` stuff from `core.ts` to `corePublic.ts` since the types are there. 16 October 2021, 12:12:59 UTC
506a95b Update package-lock.json 16 October 2021, 06:06:14 UTC
dfb4054 fix: ES6 Modules => ES Modules in error messages (#46378) * fix: ES6 Modules => ES Modules in error messages * chore: Rename test file names * chore: Rename function names 15 October 2021, 21:51:14 UTC
6a75689 Import assertion: do no parse } if { is not present (#46388) Previously, import assertion parsing would try to parse both { and }, even if both were missing. If both were missing, the error for } could occur past the end of the file, causing an assertion. Fixes #46364 15 October 2021, 20:26:46 UTC
7582b1b fix(45799): skip checking arguments used as a key in object literals (#45814) 15 October 2021, 17:34:57 UTC
b1f39a7 Fix React auto-import blocking component imports in --preserve (#46368) 15 October 2021, 16:31:47 UTC
cf9d38f Update package-lock.json 15 October 2021, 06:06:32 UTC
2c7b13b Fix explainFiles on files under nodenext with types references (#46367) * Fix explainFiles on files under nodenext with types references * Fix explainFiles crash on module nodenext 15 October 2021, 00:00:55 UTC
d16d777 No error for markdown links in @see (#46348) This only shows up in checkJS files, but should still be ignored. 14 October 2021, 22:22:59 UTC
80e1a29 fix(46305): omit converting jsx (react-jsx) spread attributes to Object.assign for ES2018 and up (#46317) 14 October 2021, 21:23:50 UTC
8718df3 Fix stack overflow in JSX discriminated union logic (#46354) * Use getContextFreeTypeOfExpression to avoid circularities * Add regression test 14 October 2021, 17:11:44 UTC
5185ef5 fix(suggestion): Remove 80001 from cjs/cts files. (#46270) * fix(suggestion): Remove 80001 from cjs/cts files. * tests: Cover more cases in a single file. * tests: Cover more cases in a single file. 14 October 2021, 16:55:59 UTC
3b086e1 Update package-lock.json 14 October 2021, 06:07:58 UTC
1c5d4e1 Pass symbol under inspection into checkIndexConstraints (#46350) 14 October 2021, 00:04:33 UTC
ac34584 Set impliedNodeFormat on sourceFiles maufactured in watch mode (#46349) 14 October 2021, 00:04:13 UTC
cd0434a fix(39744): make template literals more spec compliant (#45304) * fix(39744): make template literals more spec compliant * Add evaluation test for template literals * Add test for template literals with source map 13 October 2021, 19:03:31 UTC
0d2aeb7 Improve checks for infinitely expanding recursive conditional types (#46326) * Improve checks for infinitely expanding recursive conditional types * Accept new baselines * Add regression tests * Remove 'export' modifier * Accept new baselines 13 October 2021, 14:08:01 UTC
315b807 Update package-lock.json 13 October 2021, 06:06:54 UTC
713afe2 Set import mode on synthetic imports (#46327) 12 October 2021, 23:23:37 UTC
9e2fc16 Improve perf of unions with many primitives (#45220) 12 October 2021, 23:07:21 UTC
44deb84 fix(45336): add a blank line before the comment expression to avoid disrupting return statement (#46287) 11 October 2021, 23:41:49 UTC
68ff738 Update package-lock.json 11 October 2021, 06:06:14 UTC
feac9eb Update package-lock.json 09 October 2021, 06:06:31 UTC
64b8172 Auto-imports: fix some exports being incorrectly stored as re-exports of others due to key conflict (#45792) * Ensure symbol key unique when target is a local symbol exported elsewhere * Add test * Support targets without declarations * Best key yet * A-ha moment * Clean up types * Update API * Update unit test 08 October 2021, 22:20:12 UTC
f6c0231 Update package-lock.json 08 October 2021, 06:06:15 UTC
613c432 LEGO: Merge pull request 46264 LEGO: Merge pull request 46264 07 October 2021, 23:14:04 UTC
82822fc Use a binary search when looking for the token at a given position (#46250) 07 October 2021, 22:06:18 UTC
bbd9ff5 LEGO: Merge pull request 46260 LEGO: Merge pull request 46260 07 October 2021, 17:13:49 UTC
8c27075 In plain JS files, only suggestion did-you-mean errors (#46151) They will have code fixes, and are tuned for high precision. Others are not. 07 October 2021, 15:41:06 UTC
fbff131 LEGO: Merge pull request 46255 LEGO: Merge pull request 46255 07 October 2021, 11:15:20 UTC
08361e3 LEGO: Merge pull request 46248 LEGO: Merge pull request 46248 06 October 2021, 23:14:13 UTC
7108646 Fix extension automatic script kind detection for new extensions (#46205) * Fix extension script kind detection for new extensions * Accept (correct) changes to existing baselines affected by correct ScriptKind detection 06 October 2021, 20:23:54 UTC
ed9c522 Accept new moduleResolution options on commandline (#46239) 06 October 2021, 20:17:27 UTC
cb158e7 LEGO: Merge pull request 46238 LEGO: Merge pull request 46238 06 October 2021, 17:14:06 UTC
f8cb5fa Update package-lock.json 06 October 2021, 06:06:16 UTC
1cee973 Properly support scoped package self name lookups (#46212) 05 October 2021, 19:41:44 UTC
47cd4d3 Only set package data map under watch mode (#46211) 05 October 2021, 18:13:26 UTC
a0cf126 Limit package.json realpath lookup to only successful resolutions (#46209) 05 October 2021, 17:24:08 UTC
d60747f Feat/quick fix for types (#42126) * feat: add quick fix for types * feat: add test case for quick fix of types * feat: add did-you-mean error when Cannot_find_name_0 and Cannot_find_namespace_0 * feat: add Cannot_find_namespace_0_Did_you_mean_1 error and only suggest when resolve type * feat: update baselines * feat: update baselines * feat: update baselines * chore: fix style problem * Always suggest spelling corrections * suggest primitives instead of their wrappers * Add primitives to suggestions Instead of altering wrappers to look like primitives. * add semicolons * revert unneeded change Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 05 October 2021, 15:14:16 UTC
ee24e2e Update package-lock.json 05 October 2021, 06:06:56 UTC
5423501 LEGO: Merge pull request 46203 LEGO: Merge pull request 46203 04 October 2021, 17:14:44 UTC
91117b6 Update package-lock.json 04 October 2021, 06:07:14 UTC
a0b6ead Update package-lock.json 03 October 2021, 06:06:00 UTC
6618255 LEGO: Merge pull request 46179 LEGO: Merge pull request 46179 03 October 2021, 05:14:20 UTC
f3cc868 LEGO: Merge pull request 46178 LEGO: Merge pull request 46178 02 October 2021, 23:14:17 UTC
33581ae LEGO: Merge pull request 46173 LEGO: Merge pull request 46173 02 October 2021, 11:15:28 UTC
49fbeef LEGO: Merge pull request 46170 LEGO: Merge pull request 46170 02 October 2021, 05:17:03 UTC
a6af833 LEGO: Merge pull request 46168 LEGO: Merge pull request 46168 01 October 2021, 23:14:26 UTC
b2d2f08 improve response time of invalid rename attempts (#46158) * improve response time in invalid rename attempts * account for simplifiedResult and revert unrelated change 01 October 2021, 22:07:54 UTC
a02a7ab Follow and respect export maps when generating module specifiers (#46159) * Follow and respect export maps when generating module specifiers * Type baseline updates from master merge 01 October 2021, 20:54:07 UTC
9ed49b6 LEGO: Merge pull request 46161 LEGO: Merge pull request 46161 01 October 2021, 17:13:58 UTC
1a000c8 Fix main (#46160) 01 October 2021, 16:50:00 UTC
ccc1909 Modify synthetic default generation code for dual-mode module resolution (#46156) 01 October 2021, 16:18:44 UTC
016d78b Allow for class static vars to be called static (#44813) * Allow for class static vars to be called static - re: #41127 * Add the baselines 01 October 2021, 13:28:08 UTC
95ef2a5 feat: display the tsconfig generated when running tsc --init (#45930) * feat: display the tsconfig generated when running tsc --init * fix: fix lint issues * refactor: minor changes 01 October 2021, 13:08:06 UTC
46a12fd fix(sourcemap): accept a sourceMappingURL that ends with a newline (#45983) * fix(sourcemap): accept a sourceMappingURL that ends with a newline * Update src/compiler/sourcemap.ts Co-authored-by: Wesley Wigham <wwigham@gmail.com> 01 October 2021, 12:16:05 UTC
cadd115 Update package-lock.json 01 October 2021, 06:06:44 UTC
612c92d Track source and target relationship stack depth seperately, only increase on change in value (#41821) * Track source and target relationship stack depth seperately, only increase on change in value * Add baselines for test from #43485 * Bail on unwrapping conditional constraints on the source side when the source conditional is already known to be spooling out of control * More usage of isDeeplyNestedType to block _specifically_ conditional recursion on only one side * Negative cases of getNarrowedType that match the exact type should be filtered out, even when generic * Add test and fix for #44404 * Swap to manually specifying left and right recursion * Rename Left -> Source, Right -> Target Co-authored-by: Andrew Branch <andrew@wheream.io> 30 September 2021, 23:58:40 UTC
96f259d Minimal fix for auto-importing node_modules in node12/nodenext (#46148) 30 September 2021, 20:42:06 UTC
d613748 fix(45919): allow using JSDoc types for arrow function with type predicate (#45952) 30 September 2021, 17:50:25 UTC
e0f436c feat(36080): forbid to use JSDoc visibility modifiers in private fields (#46056) 30 September 2021, 16:48:56 UTC
e4d9282 Update package-lock.json 30 September 2021, 06:06:47 UTC
2161e18 Add `module: es2022` (#44656) Closes #44653 30 September 2021, 00:44:57 UTC
back to top