12648 Commits

Author SHA1 Message Date
Gabriela Araujo Britto
d2ad3ca035
Improve diagnostics deduplication 2 (#58318) 2024-04-29 10:24:22 -07:00
Gabriela Araujo Britto
ebcb09d71a
Improve diagnostics deduplication (#58220) 2024-04-26 15:44:09 -07:00
Wesley Wigham
f76727d17a
Add noCheck API option (#57934) 2024-04-26 13:21:15 -07:00
navya9singh
ce4862c267
Updating move to file (#58257) 2024-04-25 15:32:18 -07:00
Daniel Rosenwasser
ed87791dd9
Rephrase error messages on backrererences. (#58310) 2024-04-24 21:59:53 -07:00
Oleksandr T
501fa6e4e4
fix(58265): JSDoc comment string with the keyword "@private" before import statement in JS file result in cryptic error TS1191 during compilation (#58297) 2024-04-24 21:18:31 -07:00
Ron Buckton
e28ad995d1
Report RegExp errors in grammar check, use Annex B grammar (#58295) 2024-04-24 19:16:05 -04:00
Wesley Wigham
e6ba82b346
Error on references to literal enum members in conditions (#58264) 2024-04-24 10:32:53 -07:00
Armando Aguirre
5b69fdf541
Clone questionMark and dotdotdot token (#58263)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-04-24 10:20:59 -07:00
Wesley Wigham
0b71b81d7d
Add transpileDeclaration API method (#58261) 2024-04-23 17:09:47 -07:00
Mateusz Burzyński
21b5c9624c
Add an extra test case for an error on async function typed using @type (#58217) 2024-04-19 17:24:01 -07:00
Mateusz Burzyński
b1d821ae0c
Fixed crash in go to definition related to expando classes in JS files (#57628) 2024-04-19 16:54:30 -07:00
形素叢集・ぐらふぃーむ
42f238bfbb
Provide Syntax Checking for Regular Expressions (#55600)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 16:51:08 -07:00
Jean
8e8c1b6a64
Fix bug#56997 - Parenthesized SatisfiesExpressions with comments are not unwrapped consistently in emitted JS (#57281)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 16:00:44 -07:00
Titian Cernicova-Dragomir
e62418e868
Isolated declarations errors (#58201)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 15:37:15 -07:00
Ryan Cavanaugh
aedd1b1bb5
Correctly compute noUncheckedIndexedAccess effects on compound/increment/decrement assignments (#58239) 2024-04-19 14:13:54 -07:00
Jake Bailey
21f5f394b9
Add test for type inference of Promise/PromiseLike union bug (#58213) 2024-04-19 13:51:19 -07:00
Oleksandr T
93451e8dd9
fix(57497): "Remove unused declaration" does not work on overloaded function declarations (#57517) 2024-04-19 11:28:00 -07:00
Mateusz Burzyński
e0755dc7c1
Fixed single signature type parameter leak (#58008)
Co-authored-by: Wesley Wigham <wewigham@microsoft.com>
2024-04-19 10:15:42 -07:00
Wesley Wigham
48870169dc
Check nearest package.json dependencies for possible package names for specifier candidates (#58176) 2024-04-18 17:43:08 -07:00
Jake Bailey
0dd12da165
Error on replacement character only in top-level scanning (#58227) 2024-04-17 11:34:00 -07:00
Mateusz Burzyński
fb1b26cc68
Propagate object flags related to object and array literals onto module.exports types (#57467) 2024-04-16 11:21:01 -07:00
Gabriela Araujo Britto
fd238857b4
Avoid infinite recursion with inferReverseMappedType (#57837) 2024-04-16 10:43:39 -07:00
Mateusz Burzyński
be1f89271c
Fix declaration emit of divergent accessors in JS classes (#58172) 2024-04-15 16:48:04 -07:00
Oleksandr T
4b01686602
fix(58151): JSDoc tags get lost when inheriting from a grandparent class (#58183) 2024-04-15 15:47:40 -07:00
idango10
a4d12a46c8
fix(58146): enum quick info can display non ascii strings (#58171) 2024-04-12 13:04:03 -07:00
Wesley Wigham
a9b0d1ee53
Use better context scope for class constructor implementation signatures (#58168) 2024-04-12 12:52:14 -07:00
Andrew Branch
585a9af830
Respect package.json "type" and module-format-specific file extensions in more module modes (#57896) 2024-04-12 12:47:09 -07:00
Andrew Branch
6431a30761
Don’t emit __esModule on CJS files that didn’t use ESM syntax (#58169) 2024-04-12 12:20:09 -07:00
Wesley Wigham
6092c2d4c4
Add missing recursive vistor on copied import type nodes (#58165) 2024-04-12 10:53:57 -07:00
Andrew Branch
2b038ff64a
Fix self tail call return type inference in assigned anonymous functions (#58124) 2024-04-10 12:51:34 -07:00
Andrew Branch
30095a225c
Do not populate exports pattern keys if more than one * exists (#58123) 2024-04-10 10:12:02 -07:00
Anders Hejlsberg
53de336e1e
Don't propagate partial union/intersection properties between caches (#58083)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-09 11:39:44 -07:00
Wesley Wigham
f89a5fd674
Replace addUndefined in serializeTypeForDeclaration with the actual declaration (#58085) 2024-04-08 21:42:50 -07:00
Anders Hejlsberg
066773b99b
Fix constraints of nested homomorphic mapped type instantiations (#58098) 2024-04-08 16:02:14 -07:00
Zzzen
f608fc0a10
check return type of this type predicates (#57341) 2024-04-08 13:37:24 -07:00
Mateusz Burzyński
13e64740c9
Add test case related to invalid object spreads (#58105) 2024-04-08 11:10:40 -07:00
Mateusz Burzyński
9ba0800646
Fixed braceless type tags with types starting with an open parenthesis (#57167)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-04-05 15:38:53 -07:00
Felix Becker
bdd1f947f6
Accept decimal strings in Intl.NumberFormat (#57595)
Co-authored-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
2024-04-05 13:52:21 -07:00
Mateusz Burzyński
69e7e57b15
Fixed crashes when looking up symbols of jsdoc nodes in TS files (#57110)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-04-04 15:45:35 -07:00
Wesley Wigham
386cc0f417
Always consider type parameters in scope visible to the node builder (#58078) 2024-04-04 12:34:39 -07:00
Andrew Branch
9f8a231270
Use evaluator for isolatedModules enum restrictions (#57966) 2024-04-04 09:56:23 -07:00
Oleksandr T
1ab2a8d83e
fix(57761): Invalid verbatimModuleSyntax quick fix offered when also reexporting a value (#57769) 2024-04-03 16:06:44 -07:00
Wesley Wigham
82897a0c9c
Node builder scope traversal improvements (#58063)
Co-authored-by: Titian Cernicova-Dragomir <tcernicovad1@bloomberg.net>
2024-04-03 14:21:12 -07:00
Isabel Duan
46b4c925c3
fix51686: don't indent mapped types on new lines (#58039) 2024-04-02 15:52:09 -07:00
Mateusz Burzyński
42a215c8fb
Fixed type predicate inference for discriminated union parameters (#57952) 2024-04-02 11:49:21 -07:00
Mateusz Burzyński
520772e54e
Fixed excess and common property checks with NoInfer (#57673) 2024-04-02 08:02:52 -07:00
Sébastien Raynaud
e0d9d460a8
Update getTimezoneOffset JSDoc (#58004) 2024-04-01 08:56:09 -07:00
Mateusz Burzyński
97dc5f0dd9
Fixed a regression related to determining argument index when spread elements are involved (#57637)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-03-28 16:18:28 -07:00
Wesley Wigham
6ff28d14d1
Node builder reuses type predicate nodes, more often reuses return position nodes (#57990) 2024-03-28 14:55:10 -07:00