https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
ea7d4c6 Reduce test case + update baselines 21 October 2021, 18:10:04 UTC
16db880 Reduce test case 21 October 2021, 15:43:22 UTC
b93892a Computed property names are const contexts By analogy with the existing rule that element access argument expressions are a const context. Fixes #45798 20 October 2021, 23:46:49 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
5ec836d Fix issues + Support template literal types as discriminants (#46137) * Fix issues + Support template literal types in discriminants * Add tests * Address CR feedback 30 September 2021, 00:38:43 UTC
f09c5e8 LEGO: Merge pull request 46138 LEGO: Merge pull request 46138 29 September 2021, 23:13:38 UTC
e96c10f fix(26635): allow casts only when JSDoc type directly attached to an expression (#45960) 29 September 2021, 19:16:27 UTC
061f02c fix(44021): reference jsx pragma when JsxFragment is used (#45894) 29 September 2021, 18:31:59 UTC
5d0d7ae fix(45876): Remove "ascii character" order from docs for Float64Array.sort (#45883) * fix(45876): Do not specify ascii chracter order in docs for Float64Array.sort() when compareFn is omitted. * fix(45876): Do not specify ascii chracter order in docs for any TypedArray.sort() when compareFn is omitted. 29 September 2021, 18:05:01 UTC
8a2f5b2 fix(45999): show parameter inlay hints before initializer (#46040) 29 September 2021, 16:28:23 UTC
2667c60 Update parameter types of RegExp compile method (#46038) 29 September 2021, 16:27:21 UTC
0cd2330 LEGO: Merge pull request 46133 LEGO: Merge pull request 46133 29 September 2021, 11:15:22 UTC
fc4f9d8 Update package-lock.json 29 September 2021, 06:07:22 UTC
4c854e6 LEGO: Merge pull request 46126 LEGO: Merge pull request 46126 28 September 2021, 23:15:09 UTC
4cd3bb8 LEGO: Merge pull request 46117 LEGO: Merge pull request 46117 28 September 2021, 17:14:07 UTC
bdd321d LEGO: Merge pull request 46113 LEGO: Merge pull request 46113 28 September 2021, 11:15:13 UTC
075a7a8 Update package-lock.json 28 September 2021, 06:05:59 UTC
cdfc796 LEGO: Merge pull request 46108 LEGO: Merge pull request 46108 28 September 2021, 05:14:48 UTC
8d5c197 `keyof` should always include remapped keys (#45923) * Loosen check in getIndexTypeForMappedType to directly map property names when any indexy type is present * Handle homomorphic mappings better in keyof, add specific relationship rule for relating generic keyof MappedType to handle remapped keys * Remove trailing whitespace 28 September 2021, 02:10:02 UTC
530b0e2 Fix indexing error in guessDirectorySymlink (#46105) * Fix indexing error in guessDirectorySymlink * Add test 27 September 2021, 23:46:49 UTC
aabba1a LEGO: Merge pull request 46106 LEGO: Merge pull request 46106 27 September 2021, 23:14:06 UTC
72721d7 LEGO: check in for main to temporary branch. (#46093) 27 September 2021, 23:08:38 UTC
5512e91 LEGO: check in for main to temporary branch. (#46092) 27 September 2021, 23:08:27 UTC
4d26281 LEGO: check in for main to temporary branch. (#46091) 27 September 2021, 23:08:16 UTC
20be417 LEGO: check in for main to temporary branch. (#46090) 27 September 2021, 23:07:35 UTC
back to top