René's URL Explorer Experiment


Title: Single-expression only type predicates by RyanCavanaugh · Pull Request #57552 · microsoft/TypeScript · GitHub

Open Graph Title: Single-expression only type predicates by RyanCavanaugh · Pull Request #57552 · microsoft/TypeScript

X Title: Single-expression only type predicates by RyanCavanaugh · Pull Request #57552 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Single-expression only type predicates by RyanCavanaugh · Pull Request #57552 · microsoft/TypeScript

Open Graph Description: Variant on #57465 with tighter rules for inference: Must have exactly one parameter Must be an expression-bodied function, or have a body consisting of a single return with expression May be a get...

X Description: Variant on #57465 with tighter rules for inference: Must have exactly one parameter Must be an expression-bodied function, or have a body consisting of a single return with expression May be a get...

Opengraph URL: https://github.com/microsoft/TypeScript/pull/57552

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:b740ad10-50d0-f9c9-8ce6-8f7d0395d64c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idECF0:EA09B:ED94B7:13BB5CA:6B010939
html-safe-noncec1313c1baedf4401416a4bc8a16a703fe3090418a7bc3fc4ec4b9eaee382682c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0YwOkVBMDlCOkVEOTRCNzoxM0JCNUNBOjZCMDEwOTM5IiwidmlzaXRvcl9pZCI6IjYwMDc5NzAxMDg1MTE2ODQ5MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb3f6be5d230537b566207192f0d6f1f5d9e119144944a8fac85cc174608b9f75
hovercard-subject-tagpull_request:1744088923
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/57552/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ec6518b6d8753e2808f2cd8308f93e90bacc88f267887e34d83f4d888e5fc291/microsoft/TypeScript/pull/57552
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ec6518b6d8753e2808f2cd8308f93e90bacc88f267887e34d83f4d888e5fc291/microsoft/TypeScript/pull/57552
og:image:altVariant on #57465 with tighter rules for inference: Must have exactly one parameter Must be an expression-bodied function, or have a body consisting of a single return with expression May be a get...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRyanCavanaugh
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-cache
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/57552#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F57552
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F57552
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/57552
Reloadhttps://github.com/microsoft/TypeScript/pull/57552
Reloadhttps://github.com/microsoft/TypeScript/pull/57552
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
RyanCavanaugh:singleExprOnlyPredicateshttps://github.com/RyanCavanaugh/TypeScript/tree/singleExprOnlyPredicates
Conversationhttps://github.com/microsoft/TypeScript/pull/57552
Commits14 (14)https://github.com/microsoft/TypeScript/pull/57552/commits
Checkshttps://github.com/microsoft/TypeScript/pull/57552/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/57552/files
Single-expression only type predicateshttps://github.com/microsoft/TypeScript/pull/57552#top
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
RyanCavanaugh:singleExprOnlyPredicateshttps://github.com/RyanCavanaugh/TypeScript/tree/singleExprOnlyPredicates
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issue-2154927229
#57465https://github.com/microsoft/TypeScript/pull/57465
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
Dan Vanderkam (danvk)https://github.com/danvk
February 20, 2024 17:32https://github.com/microsoft/TypeScript/pull/57552#commits-pushed-0c24ccc
https://github.com/danvk
Infer type predicates from function bodieshttps://github.com/microsoft/TypeScript/pull/57552/commits/0c24ccc049cf0b9bbac8a0ac4f3debe768b5c1ca
0c24ccchttps://github.com/microsoft/TypeScript/pull/57552/commits/0c24ccc049cf0b9bbac8a0ac4f3debe768b5c1ca
https://github.com/danvk
Run formatterhttps://github.com/microsoft/TypeScript/pull/57552/commits/e2684f128975dac725f4af4f9e6f03d4e765cfbe
e2684f1https://github.com/microsoft/TypeScript/pull/57552/commits/e2684f128975dac725f4af4f9e6f03d4e765cfbe
https://github.com/danvk
Add secondary subtype check and testshttps://github.com/microsoft/TypeScript/pull/57552/commits/101df932d52904065eaec051239d25d7b2c40a5e
101df93https://github.com/microsoft/TypeScript/pull/57552/commits/101df932d52904065eaec051239d25d7b2c40a5e
https://github.com/danvk
add union type test to baselineshttps://github.com/microsoft/TypeScript/pull/57552/commits/d0e385e8c781be33d05aaeccc7dcb594d230c296
d0e385ehttps://github.com/microsoft/TypeScript/pull/57552/commits/d0e385e8c781be33d05aaeccc7dcb594d230c296
https://github.com/danvk
add prisma circularity test with failing baselinehttps://github.com/microsoft/TypeScript/pull/57552/commits/a72b1f17439f50a16b3b1ad162c6735f6e2b8db3
a72b1f1https://github.com/microsoft/TypeScript/pull/57552/commits/a72b1f17439f50a16b3b1ad162c6735f6e2b8db3
https://github.com/danvk
Various fixes for circularity issuehttps://github.com/microsoft/TypeScript/pull/57552/commits/ef2d4650473493b3f26a0b06dfa6fba1135b1dfe
ef2d465https://github.com/microsoft/TypeScript/pull/57552/commits/ef2d4650473493b3f26a0b06dfa6fba1135b1dfe
https://github.com/danvk
circularity test is fixedhttps://github.com/microsoft/TypeScript/pull/57552/commits/933605267cc9da80babde89c10acff3247ebe6b4
9336052https://github.com/microsoft/TypeScript/pull/57552/commits/933605267cc9da80babde89c10acff3247ebe6b4
https://github.com/danvk
revert back to CheckMode.TypeOnlyhttps://github.com/microsoft/TypeScript/pull/57552/commits/41f624d67eaf81702d79a5077fc559f4fdb22121
41f624dhttps://github.com/microsoft/TypeScript/pull/57552/commits/41f624d67eaf81702d79a5077fc559f4fdb22121
https://github.com/danvk
Add test case for a predicate that throwshttps://github.com/microsoft/TypeScript/pull/57552/commits/52df1158d9497a449c79943c9956e9a1b5719768
52df115https://github.com/microsoft/TypeScript/pull/57552/commits/52df1158d9497a449c79943c9956e9a1b5719768
https://github.com/danvk
Drop isTriviallyNonBoolean, switch to simpler test, check for assertionshttps://github.com/microsoft/TypeScript/pull/57552/commits/3ab6faef39b67169ff4cab5fc96a467bf81b2eb1
3ab6faehttps://github.com/microsoft/TypeScript/pull/57552/commits/3ab6faef39b67169ff4cab5fc96a467bf81b2eb1
https://github.com/RyanCavanaugh
Tighten bounds on what kinds of functions can be inferred predicateshttps://github.com/microsoft/TypeScript/pull/57552/commits/00501f290509b43ddc3544fc0221dc017f478b75
00501f2https://github.com/microsoft/TypeScript/pull/57552/commits/00501f290509b43ddc3544fc0221dc017f478b75
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#event-11926401718
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#event-11926401938
https://github.com/RyanCavanaugh
f o r m a thttps://github.com/microsoft/TypeScript/pull/57552/commits/49702496f4e1ba4d2fa9e85606c196642aa74951
4970249https://github.com/microsoft/TypeScript/pull/57552/commits/49702496f4e1ba4d2fa9e85606c196642aa74951
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965034221
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965034380
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
4970249https://github.com/microsoft/TypeScript/commit/49702496f4e1ba4d2fa9e85606c196642aa74951
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=160063
The results are in!https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965186448
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965186448
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Download Benchmarkshttps://typescript.visualstudio.com/TypeScript/_build/results?buildId=160063&view=artifacts
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/RyanCavanaugh
Slight rearrangehttps://github.com/microsoft/TypeScript/pull/57552/commits/29cdadc206be5c9290ea33cf1985d93961a2473b
29cdadchttps://github.com/microsoft/TypeScript/pull/57552/commits/29cdadc206be5c9290ea33cf1985d93961a2473b
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965215515
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965215606
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
29cdadchttps://github.com/microsoft/TypeScript/commit/29cdadc206be5c9290ea33cf1985d93961a2473b
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=160066
The results are in!https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965320091
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/danvk
Dan Vanderkam (danvk)https://github.com/danvk
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965233405
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
danvk/TypeScript@infer-type-predicate-16069...danvk:TypeScript:ablation-2024-02-26https://github.com/danvk/TypeScript/compare/infer-type-predicate-16069...danvk:TypeScript:ablation-2024-02-26
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965237652
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965320091
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Download Benchmarkshttps://typescript.visualstudio.com/TypeScript/_build/results?buildId=160066&view=artifacts
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/RyanCavanaugh
No-op to see detection costhttps://github.com/microsoft/TypeScript/pull/57552/commits/466e1868062258d3117eb4125ad2aeb5edc1ccd2
466e186https://github.com/microsoft/TypeScript/pull/57552/commits/466e1868062258d3117eb4125ad2aeb5edc1ccd2
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965326486
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965326638
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965326721
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
466e186https://github.com/microsoft/TypeScript/commit/466e1868062258d3117eb4125ad2aeb5edc1ccd2
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=160069
The results are in!https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965416634
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/danvk
Dan Vanderkam (danvk)https://github.com/danvk
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965373678
#54148https://github.com/microsoft/TypeScript/pull/54148
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 26, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965416634
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Download Benchmarkshttps://typescript.visualstudio.com/TypeScript/_build/results?buildId=160069&view=artifacts
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/bradzacher
Brad Zacher (bradzacher)https://github.com/bradzacher
Feb 27, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1965983413
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
on twitterhttps://twitter.com/bradzacher/status/1760414631548653729
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/danvk
Dan Vanderkam (danvk)https://github.com/danvk
Feb 27, 2024 https://github.com/microsoft/TypeScript/pull/57552#ref-pullrequest-2147194585
Infer type predicates from function bodies using control flow analysis #57465 https://github.com/microsoft/TypeScript/pull/57465
https://github.com/danvk
Dan Vanderkam (danvk)https://github.com/danvk
Feb 27, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1966857623
on twitterhttps://twitter.com/bradzacher/status/1760414631548653729
Infer type predicates from function bodies using control flow analysis #57465https://github.com/microsoft/TypeScript/pull/57465
Suggestion: one-sided or fine-grained type guards #15048https://github.com/microsoft/TypeScript/issues/15048
Infer type predicates from function bodies using control flow analysis #57465https://github.com/microsoft/TypeScript/pull/57465
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 27, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1967265484
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/bradzacher
Brad Zacher (bradzacher)https://github.com/bradzacher
Feb 27, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1967554421
TS style type guard annotations nowhttps://flow.org/en/docs/types/type-guards/
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 27, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1967572419
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/craigphicks
Craig P Hicks (craigphicks)https://github.com/craigphicks
Mar 9, 2024https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1986861464
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
Brad Zacher (@bradzacher)https://github.com/bradzacher
There's probably some scope for a lint rule to catch it (though it'd be a first of its kind and I'm not sure if it's fully possible) but it'd be cool if TS had more advanced rules.https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1967554421
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
People might not realize they're exporting a type predicate and it might not be their intent.https://github.com/microsoft/TypeScript/pull/57552#issuecomment-1967572419
#57465https://github.com/microsoft/TypeScript/pull/57465
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Mar 11, 2024https://github.com/microsoft/TypeScript/pull/57552#event-12077833739
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 16, 2025https://github.com/microsoft/TypeScript/pull/57552#event-20323076158
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F57552
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) https://github.com/RyanCavanaugh
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/57552
https://github.com/RyanCavanaugh
https://github.com/typescript-bot
https://github.com/danvk
https://github.com/bradzacher
https://github.com/craigphicks
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.