35639 Commits

Author SHA1 Message Date
Anders Hejlsberg
39489ffb4d Revert contextual type check 2024-03-02 16:07:13 -08:00
Anders Hejlsberg
b71f242e59 Accept new baselines 2024-03-02 14:32:08 -08:00
Anders Hejlsberg
f69ea1776a Don't infer type predicate for non-predicate contextual type 2024-03-02 14:31:49 -08:00
Anders Hejlsberg
c7f1c3d309 Avoid creating closures 2024-03-01 21:40:28 -08:00
Anders Hejlsberg
703253ae6b Delay expensive functionHasImplicitReturn call 2024-03-01 17:37:23 -08:00
Dan Vanderkam
0dec9c67b5
simplify 2024-03-01 11:57:57 -05:00
Dan Vanderkam
adbdc7d7a2
Merge branch 'suggested-changes-57465' into infer-type-predicate-16069 2024-03-01 09:14:18 -05:00
Anders Hejlsberg
869422f2a5 Accept new baselines 2024-02-29 16:19:44 -08:00
Anders Hejlsberg
a4ff6b4d87 Always bind flow nodes to return statements + other fixes 2024-02-29 16:19:27 -08:00
Dan Vanderkam
9a8c0a1181
tests are fixed 2024-02-29 13:32:56 -05:00
Dan Vanderkam
9591231ded
Use unescapeLeadingUnderscores 2024-02-29 13:30:55 -05:00
Dan Vanderkam
3ab6faef39
Drop isTriviallyNonBoolean, switch to simpler test, check for assertions 2024-02-25 19:08:00 -05:00
Dan Vanderkam
52df1158d9
Add test case for a predicate that throws 2024-02-23 11:15:04 -05:00
Dan Vanderkam
41f624d67e
revert back to CheckMode.TypeOnly 2024-02-23 11:13:59 -05:00
Dan Vanderkam
933605267c
circularity test is fixed 2024-02-23 10:52:40 -05:00
Dan Vanderkam
ef2d465047
Various fixes for circularity issue 2024-02-23 10:51:44 -05:00
Dan Vanderkam
a72b1f1743
add prisma circularity test with failing baseline 2024-02-23 10:50:48 -05:00
Dan Vanderkam
d0e385e8c7
add union type test to baselines 2024-02-21 17:31:13 -05:00
Dan Vanderkam
101df932d5
Add secondary subtype check and tests 2024-02-21 16:16:15 -05:00
Dan Vanderkam
e2684f1289
Run formatter 2024-02-21 11:44:55 -05:00
Dan Vanderkam
0c24ccc049
Infer type predicates from function bodies 2024-02-20 17:32:46 -05:00
Aiday Marlen Kyzy
60f93aa83a
Making Move To File Action appear less often (#57080) 2024-02-20 00:06:10 -08:00
TypeScript Bot
363abe8408 Update package-lock.json 2024-02-20 06:14:59 +00:00
Anders Hejlsberg
d04e3489b0
Improve apparent type of mapped types (#57122) 2024-02-18 14:46:37 -10:00
TypeScript Bot
86a16636ca Update package-lock.json 2024-02-17 06:14:05 +00:00
Mateusz Burzyński
feb57c269b
Instantiate earlier inferred constraints in conditional types (#57362) 2024-02-16 14:31:28 -08:00
Oleksandr T
91e67ffbea
fix(57392): using is not suggested as a keyword (#57394) 2024-02-16 14:12:17 -08:00
Mateusz Burzyński
29c0024bcf
Avoid creating rest elements with errorType when any is spread (#57116) 2024-02-16 14:05:33 -08:00
Oleksandr T
c18c1c20dc
fix(57302): Cannot move symbols from tsx to ts files (#57305) 2024-02-16 10:36:23 -08:00
TypeScript Bot
c4de2afcc2 Update package-lock.json 2024-02-16 06:14:39 +00:00
Dan Vanderkam
f41a5f5986
Preserve separators in numeric literals with target=ES2021+ (#57144) 2024-02-15 14:26:42 -08:00
hborchardt
da5f0fe9d4
Add missing members to array of objects in quickfix (#57143) 2024-02-15 11:49:38 -08:00
TypeScript Bot
67542c4c1f Update package-lock.json 2024-02-15 06:14:57 +00:00
dependabot[bot]
98348eaa89
Bump the github-actions group with 3 updates (#57411)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-14 19:01:50 -08:00
Jake Bailey
ec2c78c32b
Update TypeScript-Twoslash-Repro-Action action version (#57410) 2024-02-14 17:52:14 -08:00
Wesley Wigham
3de2cdce4d
Set NODE_ENV to development and not testing in launch template (#57407) 2024-02-14 10:50:54 -08:00
TypeScript Bot
db3d54ffbc Update package-lock.json 2024-02-14 06:15:21 +00:00
Sheetal Nandi
2f8b822c1f
Some of the fixes picked out from my work for file updates (#57401) 2024-02-13 13:18:34 -08:00
Sheetal Nandi
04fa4b5273
More logging of Script info state infromation for baselining for future script info updates improvements (#57398) 2024-02-13 12:38:30 -08:00
Abraham Guo
0b044f729f
When attaching JSDoc diagnostics, make sure to only include diagnostics that actually belong with the JSDoc (#57271) 2024-02-13 12:13:43 -08:00
Gabriela Araujo Britto
a6414052a3
Allow (non-assert) type predicates to narrow by discriminant (#57358) 2024-02-13 11:33:30 -08:00
Nathan Shively-Sanders
23960ac88c
Fix scripts/errorCheck.mjs (#57399) 2024-02-13 10:29:44 -08:00
TypeScript Bot
2a0edf7949 Update package-lock.json 2024-02-13 06:16:01 +00:00
Mateusz Burzyński
0b4966ab2a
Fixed type parameter leak in union calls with mixed type parameter presence (#57371) 2024-02-12 15:07:05 -08:00
PhoebeSzmucer
d65bdb8c34
Fix duplicated import suggestions (#57369)
Co-authored-by: Phoebe Szmucer <pszmucer@palantir.com>
2024-02-12 14:00:27 -08:00
TypeScript Bot
ae27e55b02 Update package-lock.json 2024-02-12 06:14:48 +00:00
TypeScript Bot
0d94c344fa Update package-lock.json 2024-02-11 06:14:42 +00:00
TypeScript Bot
25a708cf63 Update package-lock.json 2024-02-10 06:14:10 +00:00
Mateusz Burzyński
e2bf8b437d
Fixed distributive conditional types with never intersections (#57345) 2024-02-09 12:25:02 -08:00
TypeScript Bot
c5db0ac0ef Update package-lock.json 2024-02-09 06:14:38 +00:00