Commit Graph
17567 Commits
Author SHA1 Message Date
Jake Bailey fa58c615a4 Handle exported functions in ExportDeclarations for CJS/AMD/UMD emit (#58489) 2024-05-28 17:22:27 -07:00
Gabriela Araujo Britto 8f408cc120 Check resolution of tslib per file (#58654) 2024-05-28 16:45:51 -07:00
Anders Hejlsberg 1d026a9f69 Only resolve source return type when actually needed during inference (#58650) 2024-05-28 08:10:06 -07:00
graphemeclusterandRon Buckton d0ef028841 Improve Recovery of Unterminated Regular Expressions (#58289)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-05-24 15:46:26 -04:00
Titian Cernicova-Dragomir 842cf177db Improved errors for required parameters with default values in isolated declaration (#58637) 2024-05-24 11:50:47 -07:00
Titian Cernicova-Dragomir 6856735985 Remove members that are invalid computed properties. (#58646) 2024-05-24 10:25:46 -07:00
Sheetal Nandi 87918f52df Compact the tsbuild info by encoding info differently for some of the situations (#58641) 2024-05-24 09:38:24 -07:00
Isabel Duan cffc425ad7 fix53287 mergeSymbol checks if the resolved target can merge with the source (#58326) 2024-05-23 17:30:13 -07:00
Ron Buckton a1dfb1abe5 Fix class decorator detection in class fields transform (#58554) 2024-05-23 15:32:46 -04:00
Titian Cernicova-Dragomir 2b4e7e34e7 Improve reuse of nodes in signatures with type mapping (#58546) 2024-05-23 12:11:29 -07:00
Wesley WighamandTypeScript Bot b3f3bb3d38 Propagate the error any type in union and intersection construction (#58610)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-23 09:38:57 -07:00
Titian Cernicova-Dragomir a203ace7af Ban inferred return type on async and generator functions. (#58628) 2024-05-23 09:29:49 -07:00
Titian Cernicova-Dragomir 8537bb72eb Error if type node uses inaccessible type in isolated declarations (#58620) 2024-05-22 15:51:11 -07:00
Wesley Wigham b682ed4504 Lock down computed names in object literals and classes under --isolatedDeclarations (#58596) 2024-05-22 12:28:07 -07:00
Matthieu Riegler 75342d8ca8 fix(58584): formatJSDocLink shouldn't introduce a trailing space when non link text. (#58585) 2024-05-21 14:53:52 -07:00
Sheetal Nandi cd40d26f01 Skip typechecking file when generating declaraiton to get d.ts signature for incremental build (#58592) 2024-05-21 14:09:44 -07:00
Sheetal Nandi 06841520db If module exports const enum, invalidate js files along with dts as it can impact js emit as well (#58594) 2024-05-21 13:57:57 -07:00
Wesley WighamandTypeScript Bot 6f72e24544 Fix elided var handling in declaration emit visibility checks (#58605)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-21 13:44:35 -07:00
Andrew Branch 84ab39d7f0 Respect importModuleSpecifierPreference in sort order between fixes for the same symbol from different files (#58597) 2024-05-21 08:36:53 -07:00
Sheetal Nandi d84431e706 Handle root files listed in project config from referenced project to be same as if they were included through import (#58560) 2024-05-20 10:05:42 -07:00
Wesley Wigham 79a851426c Attempt to reuse type parameter constraint nodes (#58539) 2024-05-16 14:51:09 -07:00
Isabel Duan 4da470da37 fix56509: return type if tryCreateAwaitedType fails (#58547) 2024-05-16 14:02:15 -07:00
Sheetal Nandi 84ed6a3d64 Make sure that jsdoc is always in range with parameter declaration (#58538) 2024-05-15 12:03:09 -07:00
Titian Cernicova-Dragomir 4ece0a381b Partially reuse type nodes (#58516) 2024-05-14 13:56:41 -07:00
Wesley Wigham 2d47953d9d Declaration emit should avoid issuing errors on unresolved names (#58536) 2024-05-14 12:49:05 -07:00
Sheetal Nandi ef01ea1ac6 Stop checking existing resolution now that we have concept of package ID (#58528) 2024-05-14 10:30:22 -07:00
Anders Hejlsberg d90e8e7eca Fix constant evaluation of template string expressions (#58500) 2024-05-14 09:44:05 -04:00
Sheetal Nandi e51cbc8764 Do not lowercase typeReference directive name (#58525) 2024-05-13 16:35:49 -07:00
Sheetal Nandi 524456ff5a Fix incorrect usage of getResolvedTypeReferenceDirectives and some refactoring (#58527) 2024-05-13 16:03:40 -07:00
Wesley Wigham 56cfd6c3a8 Preserve return type nodes which resolve to errors in declaration emit (#58522) 2024-05-13 11:55:01 -07:00
Wesley Wigham 8111503772 Update unicode identifier start/part with more recent unicode version (#58521) 2024-05-13 11:14:34 -07:00
Joost Koehoorn 0b37062eb0 Remove unused SymbolLinks properties (#58393) 2024-05-10 15:01:22 -07:00
Titian Cernicova-Dragomir 72c12c9920 Isolated declarations fix signature serialization scoping (#58409) 2024-05-10 14:09:25 -07:00
Wesley Wigham 9f9682c0a0 Move all js emit alias marking behavior behind a single entrypoint (#58366) 2024-05-09 17:03:11 -07:00
Wesley Wigham fece7f11c0 Preserve type nodes which resolve to errors in declaration emit output (#58475) 2024-05-08 13:29:51 -07:00
Andrew Branch bc14459f3b Refactor default export info name gathering (#58460) 2024-05-08 09:33:17 -07:00
Andrew BranchandSheetal Nandi 14b4529a69 Fix tslib resolutions (#58451)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2024-05-07 11:28:20 -07:00
Wesley WighamandTypeScript Bot 0d3c48109d Declaration emit should retain (instead of elide) unresolved computed names (#58428)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-07 05:42:13 -07:00
Jake Bailey 16beff101a Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -07:00
Mateusz Burzyński 9598d35074 Avoid getting single call signatures when parameter types are the same (#58392) 2024-05-06 16:49:24 -07:00
Sheetal Nandi fd81d04080 Lazy calculation of expensive file explaining diagnsotics and some caching to be used to share the diagnostic data (#58398) 2024-05-06 16:30:17 -07:00
Ron Buckton 70d8ec2f26 Fix name generation scoping (#58418) 2024-05-06 11:59:37 -04:00
Wesley Wigham e154d47851 Type alias declarations should not return an effective annotation node (#58410) 2024-05-03 10:34:35 -07:00
Anders Hejlsberg 3a74ec4e99 Disable constraint reduction in intersections created by constraint hoisting (#58403) 2024-05-02 16:55:11 -07:00
Sheetal Nandi 7a38980a7e Validate the options passed in are numbers instead of strings for our custom commandline options (#58388) 2024-05-01 14:51:36 -07:00
Oleksandr T 66dd12e699 fix(58259): getTextOfJSDocComment is stripping # from JSDoc comment (#58338) 2024-05-01 11:47:26 -07:00
Mateusz Burzyński f01cae8893 Fixed an issue with missingType narrowing by case undefined in default cases (#58001) 2024-05-01 08:57:42 -07:00
Hana JooandAndrew Branch 33b156147b Add a code fixer for --isolatedDeclarations errors (#58260)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2024-04-30 15:25:51 -07:00
Anders Hejlsberg 749bd834be Cache discriminated contextual types (#58372) 2024-04-30 12:40:28 -07:00
Wesley Wigham 36146aa2ea Remove seemingly unused SymbolLink constEnumReferenced (#58377) 2024-04-30 11:35:09 -07:00