René's URL Explorer Experiment


Title: Allow non returning functions to have contextually required `undefined` return type · Issue #36288 · microsoft/TypeScript · GitHub

Open Graph Title: Allow non returning functions to have contextually required `undefined` return type · Issue #36288 · microsoft/TypeScript

X Title: Allow non returning functions to have contextually required `undefined` return type · Issue #36288 · microsoft/TypeScript

Description: Search Terms #36239 Suggestion Allow non returning functions to have contextually required undefined return type. Use Cases Callbacks Examples declare function f(a: () => undefined): void; f(() => { }); // error -> ok f((): undefined => ...

Open Graph Description: Search Terms #36239 Suggestion Allow non returning functions to have contextually required undefined return type. Use Cases Callbacks Examples declare function f(a: () => undefined): void; f(() => ...

X Description: Search Terms #36239 Suggestion Allow non returning functions to have contextually required undefined return type. Use Cases Callbacks Examples declare function f(a: () => undefined): void; f(() ...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/36288

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow non returning functions to have contextually required `undefined` return type","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n  * Read the FAQ, especially the \"Common Feature Requests\" section: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\n-->\r\n\r\n## Search Terms\r\n\r\n#36239\r\n\r\n## Suggestion\r\n\r\nAllow non returning functions to have contextually required `undefined` return type.\r\n\r\n## Use Cases\r\n\r\n- Callbacks\r\n\r\n## Examples\r\n\r\n```ts\r\ndeclare function f(a: () => undefined): void;\r\nf(() => { }); // error -> ok\r\nf((): undefined => { }); // error -> ok\r\nconst g1: () => undefined = () => { }; // error -> ok\r\nconst g2 = (): undefined => { }; // error -> ok if possible\r\nfunction h1() {\r\n}\r\nf(h1); // error -> error\r\nfunction h2(): undefined { // error -> ok if possible\r\n}\r\n```\r\n\r\n## Checklist\r\n\r\nMy suggestion meets these guidelines:\r\n\r\n* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code\r\n* [x] This wouldn't change the runtime behavior of existing JavaScript code\r\n* [x] This could be implemented without emitting different JS based on the types of the expressions\r\n* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)\r\n* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).\r\n","author":{"url":"https://github.com/falsandtru","@type":"Person","name":"falsandtru"},"datePublished":"2020-01-18T17:19:42Z","url":"https://github.com/microsoft/TypeScript/issues/36288"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ea1e5713-dac8-7570-be70-d51e5a11bf7b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDBDC:339D75:A718C6:EA2E9C:6B04321C
html-safe-nonce767a0967bc4de87dbb8dcb28a2bea168970b417fa5387630ffa3a262fcebc47e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkRDOjMzOUQ3NTpBNzE4QzY6RUEyRTlDOjZCMDQzMjFDIiwidmlzaXRvcl9pZCI6IjQzMzUyMzQ4MTUyMTg2OTI2MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3b3affad96b07ce8662d87b897cbf58447781d7a2ca475a300b1f9e58f6e0df8
hovercard-subject-tagissue:551797511
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/36288/issue_layout
twitter:imagehttps://opengraph.githubassets.com/251e7d205904dae749298d7e2270f00a309ceb9b7278022cd462f07d593605d2/microsoft/TypeScript/issues/36288
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/251e7d205904dae749298d7e2270f00a309ceb9b7278022cd462f07d593605d2/microsoft/TypeScript/issues/36288
og:image:altSearch Terms #36239 Suggestion Allow non returning functions to have contextually required undefined return type. Use Cases Callbacks Examples declare function f(a: () => undefined): void; f(() => ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefalsandtru
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
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
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/36288#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F36288
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%2Fissues%2F36288
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/36288
Reloadhttps://github.com/microsoft/TypeScript/issues/36288
Reloadhttps://github.com/microsoft/TypeScript/issues/36288
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests320 (320)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
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/36288
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/36288
#53607https://github.com/microsoft/TypeScript/pull/53607
#53092https://github.com/microsoft/TypeScript/pull/53092
Allow non returning functions to have contextually required undefined return typehttps://github.com/microsoft/TypeScript/issues/36288#top
#53607https://github.com/microsoft/TypeScript/pull/53607
#53092https://github.com/microsoft/TypeScript/pull/53092
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 5.1.0https://github.com/microsoft/TypeScript/milestone/178
https://github.com/falsandtru
falsandtru (falsandtru)https://github.com/falsandtru
on Jan 18, 2020https://github.com/microsoft/TypeScript/issues/36288#issue-551797511
#36239https://github.com/microsoft/TypeScript/issues/36239
TypeScript's Design Goalshttps://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Jan 23, 2020https://github.com/microsoft/TypeScript/issues/36288#event-2974559020
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jan 23, 2020https://github.com/microsoft/TypeScript/issues/36288#issuecomment-577778893
https://github.com/wffurr
William Furr (wffurr)https://github.com/wffurr
on Jul 6, 2020https://github.com/microsoft/TypeScript/issues/36288#issuecomment-654251407
https://github.com/wffurr
William Furr (wffurr)https://github.com/wffurr
on Jul 28, 2020https://github.com/microsoft/TypeScript/issues/36288#issuecomment-665351253
https://github.com/ExE-Boss
ExE Boss (ExE-Boss)https://github.com/ExE-Boss
on Sep 6, 2020https://github.com/microsoft/TypeScript/issues/36288#issuecomment-687722536
https://github.com/ilogico
Gonçalo Fernandes (ilogico)https://github.com/ilogico
on Sep 8, 2020https://github.com/microsoft/TypeScript/issues/36288#issuecomment-688999386
https://github.com/ljwagerfield
Lawrence Wagerfield (ljwagerfield)https://github.com/ljwagerfield
on May 26, 2021https://github.com/microsoft/TypeScript/issues/36288#issuecomment-848809623
falsandtru (@falsandtru)https://github.com/falsandtru
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 26, 2021https://github.com/microsoft/TypeScript/issues/36288#issuecomment-849169892
Lawrence Wagerfield (@ljwagerfield)https://github.com/ljwagerfield
https://github.com/ljwagerfield
Lawrence Wagerfield (ljwagerfield)https://github.com/ljwagerfield
on May 27, 2021https://github.com/microsoft/TypeScript/issues/36288#issuecomment-849540958
Lawrence Wagerfield (@ljwagerfield)https://github.com/ljwagerfield
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/borgesius
Dana Dzik (borgesius)https://github.com/borgesius
on Feb 18, 2022https://github.com/microsoft/TypeScript/issues/36288#issuecomment-1044971066
https://github.com/bombillazo
Hector Ayala (bombillazo)https://github.com/bombillazo
on May 19, 2022https://github.com/microsoft/TypeScript/issues/36288#issuecomment-1132184522
https://github.com/akouryy
akouryy (akouryy)https://github.com/akouryy
on Jun 16, 2022https://github.com/microsoft/TypeScript/issues/36288#issuecomment-1157462003
https://github.com/stevenwdv
stevenwdvhttps://github.com/stevenwdv
on Oct 18, 2022https://github.com/microsoft/TypeScript/issues/36288#issuecomment-1283011605
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#53092https://github.com/microsoft/TypeScript/pull/53092
on Mar 17, 2023https://github.com/microsoft/TypeScript/issues/36288#event-8781650682
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
TypeScript 5.1.0https://github.com/microsoft/TypeScript/milestone/178
on Mar 17, 2023https://github.com/microsoft/TypeScript/issues/36288#event-8781651160
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Mar 17, 2023https://github.com/microsoft/TypeScript/issues/36288#event-8781652826
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Mar 17, 2023https://github.com/microsoft/TypeScript/issues/36288#issuecomment-1474288909
Kagami Sascha Rosylight (@saschanaz)https://github.com/saschanaz
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Mar 31, 2023https://github.com/microsoft/TypeScript/issues/36288#event-8899962649
https://github.com/lolbinarycat
lolbinarycathttps://github.com/lolbinarycat
on Mar 4, 2025https://github.com/microsoft/TypeScript/issues/36288#issuecomment-2698886937
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/36288
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/36288
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 5.1.0https://github.com/microsoft/TypeScript/milestone/178
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.