https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
166c0a9 Perform up-front checks to avoid relying on info set by the binder. 21 March 2022, 20:29:13 UTC
8f5f059 Add some guard points for binding in the checker; ensure that bind diagnostics prompt a file check. 21 March 2022, 19:02:33 UTC
073ac92 Add server tracepoints (#48282) * Trace project creation, loading, and updateGraph * Drop generic event tracing * Make argument names more consistent * Trace diagnostics to make steps easier to interpret * Fill an unexplained gap in updateGraph * Move updateGraph tracing into base type * Fill the gaps in updateGraph 17 March 2022, 21:56:42 UTC
c1cf901 fix(48291): omit jsdoc modifiers (#48304) 17 March 2022, 20:44:42 UTC
9a2868b Infer extracted local variable name from property name (#37902) 17 March 2022, 20:39:13 UTC
df1faa0 Add isolatedModules error for ambiguous imports referenced in decorator metadata (#42915) * Add isolatedModules error for ambiguous imports referenced in decorator metadata * Improve test and accept baselines * Error only for es2015+ * Add namespace import to error message as workaround * Add codefix * Fix merge fallout 17 March 2022, 19:00:23 UTC
b996287 fix(48191): Duplicates comments on "Add definite assignment assertion to property" (#48299) * Suppress leading and trailing comments for adding missing definite assignment assertion action * Suppress leading and trailing comments for adding missing initalizer action * Test for initializer property action 17 March 2022, 16:57:10 UTC
546a87f feat(48231): allow unique symbol for constant variables (#48270) 17 March 2022, 00:00:27 UTC
cf8ed8f Change sortText for class member completions (#48196) * change sortText for class member completions * update test * create new sort text member for class snippets * change values of sort text enum 16 March 2022, 23:04:08 UTC
f12922c fix(48277): show parameter type inlay hints after ? operator (#48283) 16 March 2022, 18:38:40 UTC
7f65250 Handle JS synthetic rest args in contextual parameter assignment (#48263) * Handle JS synthetic rest args in contextual parameter assignment * Limit fixing to only unannotated js rest parameters * Minimize test * Add annotated version * Remove explicit CheckFlags.RestParameter check since apparently not all rest parameters are CheckFlags.RestParameter 16 March 2022, 18:04:07 UTC
92bc2dd Consistently avoid pulling on the source return type when the target return type is any (#47306) 16 March 2022, 01:16:05 UTC
8e5a84a Exclude mapped types with optionality modifiers and 'as' clauses from constraint logic (#48273) * Exclude mapped types with optionality modifiers and 'as' clauses * Add regression tests 16 March 2022, 00:37:46 UTC
111ca92 Fix parser regression for bad related diagnostic on missing matching brackets (#44158) * Revert "Revert #43460 and #40884 (#44175)" This reverts commit 57704348914d046e6db8907f6e44e7937b3bcb5b. * fix missing opening brace match error * refactor parseExpectedMatchingBrackets * use getNodePos * accept baselines * delete mistakenly added files * Revert getNodePos addition Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 16 March 2022, 00:29:41 UTC
8c060ee Exclude mapped types with 'as' clauses from certain checks (#47889) * Exclude mapped types with 'as' clauses from certain checks * Add tests 16 March 2022, 00:01:33 UTC
c981c9b fix(47597): ignore commented imports following template expression (#47657) 15 March 2022, 22:28:49 UTC
7addca6 Update issue templates (#48261) 15 March 2022, 21:43:46 UTC
5f017df Fix top level logical assignment leak (#40536) * Fix leaking top level logical assignment * Fix leaking top level logical assignment 14 March 2022, 17:48:31 UTC
4a58fbc fix(48081): omit error on importing variables defined with require() (#48115) 14 March 2022, 16:55:12 UTC
ca65a1a Add `boolean` to supported literals within `Object.freeze` (#48117) 14 March 2022, 16:07:31 UTC
995e0a0 Update package-lock.json 14 March 2022, 06:06:27 UTC
6f0dd47 Update package-lock.json 12 March 2022, 06:06:33 UTC
ce9657d Introduce set with custom equals and getHashCode (#48169) * Implement set with custom equals and getHashCode * Adopt custom set in session * Add doc comment * Initially store buckets as non-arrays 12 March 2022, 00:17:54 UTC
93c3a30 Add assertion on invalid cache set (#43845) 11 March 2022, 18:57:22 UTC
d1fa945 Add moduleDetection compiler flag to allow for changing how modules are parsed (#47495) * Add moduleDetection compiler flag to allow for changing how modules are parsed The default setting is 'auto', where JSX containing files under react-jsx and react-jsxdev are always parsed as modules, and esm-format files under module: node12+ are always parsed as modules, in addition to the 'legacy' detection mode's conditions for other files. (Declaration files are exempt from these new conditions) The 'legacy' mode preserves TS's behavior prior to the introduction of this flag - a file is parsed as a module if it contains an import, export, or import.meta expression. In addition, there is a 'force' mode that forces all non-declaration files to be parsed as modules. (Declaration files are still only modules if they contain a top-level import or export.) This technically breaks the parser API, but it's kinda-sorta backwards compatible so long as you don't need the functionality associated with more recent compiler flags. * Fix post-merge lint * Rename function * Update default value documentation * PR feedback * Fix lint and typo 11 March 2022, 18:36:00 UTC
0271738 Properly reduce intersections to never in identity relation (#48111) * Exclude types that may simplify to other forms * Add regression test 11 March 2022, 18:18:04 UTC
04238e6 Fix/dependent parameters obj methods (#48110) * Add failing test for dependent destructured variables within obj methods * Fixed an issue with dependent parameters within obj methods 11 March 2022, 17:46:30 UTC
5fd0b64 Clean up a load of unused dependencies, broken jake script (#48214) 11 March 2022, 17:36:03 UTC
a4f5555 Move `hasOwn` from Object instance to Object constructor (#48207) Fixes #48206 10 March 2022, 23:28:47 UTC
3f63804 Make direct assignments to cjs exports considered literal contexts (#39816) * Make direct assignments to cjs exports considered literal contexts * Style feedback from PR * Trailing whitespaaaaace 09 March 2022, 21:27:39 UTC
f76452c Fix conditional type type parameter leak (#31455) * Fix conditional type type parameter leak * Monkey with comment text per code review * Conditionally clone type param * Reuse input array and avoid making mapper where possible 09 March 2022, 21:25:14 UTC
fc82c67 Don't eagerly simplify reducible generic union index types (#46812) 09 March 2022, 20:02:11 UTC
ea4791d Preserve the homomorphism of inlined mapped types in declaration emit (#48091) 09 March 2022, 18:31:54 UTC
c70be8b Handle nonmaster branches in user suite tests (#48128) * Handle nonmaster branches in user suite tests * Fix remaining changed default branches, vscode & vue-next docker install scripts * NPM reformats these on install now, comitting so it doesnt need to be ignored * Accept current user suite baselines * Fix many trivially fixable user suite tests 09 March 2022, 18:31:16 UTC
918f0ef Rename SyntaxKind.JSDocComment -> JSDoc (#44416) * Rename SyntaxKind.JSDocComment -> JSDoc Early on, I made the mistake of using the syntax kind JSDocComment for the type JSDoc. This arose because I hadn't decided on the terminology of "jsdoc" for the C-style comment that is attached to a declaration. "comment" for the text that follows a tag. By the time I settled on those terms consistently, a version had already shipped with `interface JSDoc` having `SyntaxKind.JSDocComment`. However, there is now a `type JSDocComment` that represents the possible contents of the comment text (strings and various kinds of `@link`), so it's doubly confusing that this type has a union of four kinds instead of SyntaxKind.JSDocComment. Although this is a public API break, I don't think it's hard to recover from, and the JSDoc API has accessors for individual tag types, so I suspect few people refer directly to SyntaxKind.JSDocComment. * Add deprecate JSDocComment alias to JSDoc For backward compatibility * Make JSDoc an alias of JSDocComment Improves output of JSDocParsing tests without having to make its code smarter. * update API baselines 09 March 2022, 17:51:29 UTC
94a7ec1 🤖 Sync option descriptions <- website (#46465) * 🤖 Sync option descriptions <- jablko/TypeScript-Website@a9df5139f2cde92b02f71b2b5d51a5e883ecad6a https://github.com/jablko/TypeScript-Website/actions/runs/1953829438 * Update Baselines and/or Applied Lint Fixes Co-authored-by: jablko/TypeScript-Website:.github/workflows/sync-option-descriptions.yml <bot@typescriptlang.org> Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> 08 March 2022, 23:55:13 UTC
af027f3 Bail on 0- and 1-length lists in `removeSubtypes` to avoid spurious circularity problems (#46981) * Creates a reasonable workaround for #46939 * Remove unrelated newline * Do the cheap length check ahead of the cache check * Actually do it. 08 March 2022, 16:50:07 UTC
d8b21a8 Don't crash on non-literal computed property names during getPropertyAssignment (#48079) 07 March 2022, 22:18:55 UTC
418989b Tidy up navto and find-file-references (#48106) They were using the same helpers as FAR and rename, but they actually behave differently. Decoupling them helps avoid some unnecessary work and will make it easier to clean up FAR in the future. Scoping NavTo results to a single project (rather than, e.g. all loaded projects) makes the behavior more logical and the implementation simpler. 07 March 2022, 18:56:04 UTC
20c93d3 LEGO: Merge pull request 48129 LEGO: Merge pull request 48129 05 March 2022, 10:50:20 UTC
5f6ebf9 Show error when trying to instantiate a union of abstract and concrete constructors (#48114) * check composite signatures for abstract flag * add tests and baselines * refactor someSignature into a single function 05 March 2022, 01:39:05 UTC
c1783b2 Add a test for emit of a computed property based on an aliased symbol (#47978) 05 March 2022, 01:35:19 UTC
857889a Fix crash when `this` is typed as a generic `T` with no type constraints (#47991) * fix this type validations for protected fields * update previous baselines * add new tests and baselines * ClassOrInterface can be returned as enclosingClass * inline function code and remove unnecessary blank lines * refactor enclosingClass checks 05 March 2022, 01:08:44 UTC
82fc9b1 fix(43154): emit typeof type for static methods with a computed name (#46923) 05 March 2022, 01:07:38 UTC
d12020d Describe jsxFragmentFactory option default value (#46798) 05 March 2022, 01:03:55 UTC
162713f fix(40617): handle uninitialized class member with computed key (#45974) 05 March 2022, 00:03:36 UTC
f9ae305 support generic type when checking implicit conversion of symbol to string (#44578) Co-authored-by: Wesley Wigham <wewigham@microsoft.com> 04 March 2022, 23:57:34 UTC
774899f Note git's core.longpaths in CONTRIBUTING (#45069) * Note git's core.longpaths in CONTRIBUTING So people will be able to clone the repo on Windows. However, I'm not sure whether this addresses running tests. * Address PR comments 04 March 2022, 23:45:10 UTC
751c114 Fix contextual discrimination for omitted members (#43937) In short, the fix I submitted looked at the union ofproperties, but it really should have looked at the intersection. Two sytlistic notes. I couldn't find the best way to get the unique strings of an array like `[...new Set()]` would, so I created a small helper function, but didn't put it in a great place. Also, before the second concatenated array of discriminators at least matched the first in complexity, but now it's much worse. I don't think that section is particularly easy to read, but I also don't see a significantly reusable part. fixes #41759 04 March 2022, 22:07:37 UTC
ae62da9 Fixes #35735: Avoids listing missing properties for types with only call/construct signatures (#40973) * Fixes #35735 * fixes #35735 * PR feedback Co-authored-by: Wesley Wigham <wewigham@microsoft.com> 04 March 2022, 21:54:38 UTC
5f9f9e3 fix(44477): emit full path to access expressions in comments (#44545) Co-authored-by: Wesley Wigham <wewigham@microsoft.com> 04 March 2022, 19:22:46 UTC
4abad55 Prevent crash on code fixes on default keyword (#48028) 04 March 2022, 18:43:04 UTC
1f52ca8 Require `tag` parameter and allow `Locale` object as argument to `Intl.Locale()` constructor (#48019) * mark tag as required, and can accept another Locale object * add tests and baselines * update baselines 04 March 2022, 17:04:57 UTC
39013f1 LEGO: Merge pull request 48119 LEGO: Merge pull request 48119 04 March 2022, 10:50:09 UTC
ddad61e Add an overload to Object.freeze that preserves literal types (#33767) * Add an overload to Object.freeze that preserves literal types * Accept changes baselines Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 03 March 2022, 22:23:41 UTC
0a24dee fix: add this type for Reflect.defineProperty (#33544) Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 03 March 2022, 19:01:12 UTC
112dd24 Add test for call (#48015) 03 March 2022, 17:40:10 UTC
06d426c Fix const enum comments (#47990) * chore: add test case * fix: const enum comment * fix: replace all unsafe pattern * chore: run regex only if element access 03 March 2022, 17:10:02 UTC
f82d0cb Add explicit assertion on somewhat commonly incorrectly passed argument (#48078) * Add explicit assertion on somewhat commonly incorrectly passed argument * PR feedback 02 March 2022, 17:13:42 UTC
ea0db9e Add import assertions to type only imports and import types to force the resolution mode of the specifier (#47807) * Add import assertions for type-only imports and import types to change resolver modes * By popular request, only allow mode assertions on top-level type only imports * Add specifier options parameter to specifier generation 02 March 2022, 16:54:10 UTC
ff1f7b1 Esm imports of cjs files should unconditionally have a default patched on (#48062) 02 March 2022, 16:53:31 UTC
ed45f05 Update package-lock.json 02 March 2022, 06:06:38 UTC
0637148 fix(47946): check literal types in export assignments with declared JSDoc types (#47951) 01 March 2022, 22:44:36 UTC
e64f04b Fix modifier order for class member completions (#48066) * fix modifier order & tests * remove empty replacement span from tests 01 March 2022, 18:05:24 UTC
e4fe50c Fix incorrect parser error assumption in semicolon handling leading to incremental parser brokenness (#48067) 01 March 2022, 01:05:32 UTC
7191875 Use full `isReadonlySymbol` check rather than declaration flags (#48064) * Use full `isReadonlySymbol` check rather than declaration flags * Limit subtype readonly consistency check to strict subtype relation * Update comment 28 February 2022, 22:35:33 UTC
1abc47b Add `Intl.Locale` parameter type to `toLocale[X]String` signatures. (#47811) * add Intl.Locale param type to locales argument in BigInt, Number, and Date methods * update baselines * add test for locales object arguments * fix indentation 28 February 2022, 22:10:18 UTC
03c11c8 Add missing `getReducedType` call in `getConditionalTypeInstantiation` (#48061) 28 February 2022, 21:41:10 UTC
41b981c fix(47853): Convert to template string issue (#47976) 28 February 2022, 18:40:48 UTC
0043abe Expose text property of SourceFileLike for some Public APIs (#44599) * Expose text property of SourceFileLike * gulp baseline-accept 25 February 2022, 22:29:08 UTC
2dede20 Don't treat a colon in a conditional expression branch as part of an arrow function (#47550) 25 February 2022, 21:08:18 UTC
dda6583 go-to-type-definition, and find-all-refs should work for import.meta (#44364) * go-to-type-definition, and find-all-refs should work for import.meta * search `meta` instead of `import.meta` * remove `definition` * fix compilation error * update baseline * revert definition 25 February 2022, 17:02:06 UTC
733eff2 Revert "Use related spans for "implement abstract class" errors" (#48029) 25 February 2022, 00:15:31 UTC
dada02a Merge branch 'FlyingPumba-related-spans-for-implement-abstract-class-error' 25 February 2022, 00:12:25 UTC
4b395c6 Merge branch 'related-spans-for-implement-abstract-class-error' of https://github.com/FlyingPumba/TypeScript into FlyingPumba-related-spans-for-implement-abstract-class-error 25 February 2022, 00:11:03 UTC
29c7ae2 Update package-lock.json 24 February 2022, 06:06:28 UTC
ff3b458 fix(47158): Removes comments when line variable declaration (#47407) Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com> 23 February 2022, 17:33:41 UTC
78818e0 early return if pattern type is never (#47927) 23 February 2022, 01:34:02 UTC
aa920c0 fix(47296): add outlining spans for parenthesized expressions (#47307) 22 February 2022, 20:12:12 UTC
2d85e1e Update package-lock.json 22 February 2022, 06:07:32 UTC
8f9b653 LEGO: Merge pull request 47985 LEGO: Merge pull request 47985 21 February 2022, 10:54:45 UTC
a754874 LEGO: Merge pull request 47973 LEGO: Merge pull request 47973 20 February 2022, 10:50:12 UTC
9636585 Update package-lock.json 20 February 2022, 06:06:19 UTC
1ad569f LEGO: Merge pull request 47967 LEGO: Merge pull request 47967 19 February 2022, 11:09:46 UTC
5150682 Only suggest `@param` codefixes in TS (#47959) * Only issue @param suggestions with codefixes in TS Previously, there were 2 JS errors that were issued as suggestions in TS files. But there was no codefix for these errors, and the errors were incorrect in TS. This PR only issues the JS-specific errors on JS files. * Minimise test 18 February 2022, 23:58:09 UTC
acfdd1b update baseline (#47960) 18 February 2022, 22:48:09 UTC
b0b8cda feat(44956): remove hyphen separator (#47777) 18 February 2022, 21:41:36 UTC
2477ff9 Fix object.assign first param constraint (#40909) * fixes #35621 * undo changes to generated file * undo whitespace fixup attempt * update baselines Co-authored-by: TrejGun <trejgun@gmail.com> 18 February 2022, 21:30:07 UTC
9220498 Standardized aka.ms links for tsc and tsconfig (#47129) * Standardized aka.ms links for tsc and tsconfig * Three missed baselines * Three last baselines * Went back to aka.ms/tsconfig 18 February 2022, 20:09:15 UTC
db226a8 Remove unnecessary check in getNarrowableTypeForReference (#47953) * Remove unnecessary check in getNarrowableTypeForReference * Add regression test 18 February 2022, 19:03:48 UTC
ddf17e0 LEGO: Merge pull request 47948 LEGO: Merge pull request 47948 18 February 2022, 10:49:24 UTC
b8b1201 fix(47024):fix type of DateTimeFormat and NumberFormat (#47117) * fix type of DateTimeFormat and NumberFormat * add NumberFormat to esnext.intl.d.ts * Update src/lib/esnext.intl.d.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * better unification of previous changes Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 17 February 2022, 23:37:43 UTC
51d3446 feat(47281): use unknown type instead of any (#47308) 17 February 2022, 21:54:02 UTC
55e2e15 Use webworker typings for webServer (#46944) Updates `webServer.ts` to include the webworker typings. This means we don't have to redeclare the web globals we use in this file 17 February 2022, 21:18:20 UTC
092018b fix issue where duplicate default exports aren't detected (#46871) * fix issue where duplicate default exports aren't detected when there's an interface * accept baseline change * add `exportDefaultInterfaceClassAndValue` test * add more tests for multiple default exports * add two interfaces test Co-authored-by: DetachHead <detachhead@users.noreply.github.com> 17 February 2022, 21:17:31 UTC
fb1066e Uncalled function checks only works with single conditional (#42835) * Uncalled function checks only works with single conditional * fix type errors in compiler * remove uncalled function checks with negations * review * fix test * Cleanup after merge, accept baselines Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 17 February 2022, 19:37:55 UTC
53809d8 Remove unnecessary check for misaligned complex rest parameters (#47934) * Remove unnecessary check for misaligned complex rest parameters * Add tests 17 February 2022, 19:35:52 UTC
1c06ef3 fix(47391): omit | token from jsdoc linkTag text (#47575) 17 February 2022, 19:35:09 UTC
5b947e6 feat(47619): add support for extracting jsx string literal attribute to a constant (#47624) 17 February 2022, 19:30:52 UTC
66dba13 Fix #38482 making ThisParameterType<T> more general (#47162) `ThisParameterType<(...args: X) => void>` expands to `(...args: X) => void extends (this: infer U, ...args: any[]) => any`. When `X` is an unresolved type parameter it is not possible to determine that `any[]` is assignable to `X`. However `never` is always assignable to `X`, so we use that instead. 17 February 2022, 19:28:22 UTC
back to top