René's URL Explorer Experiment


Title: Feature Request: F# style Type Provider support? · Issue #3136 · microsoft/TypeScript · GitHub

Open Graph Title: Feature Request: F# style Type Provider support? · Issue #3136 · microsoft/TypeScript

X Title: Feature Request: F# style Type Provider support? · Issue #3136 · microsoft/TypeScript

Description: Could we get support for something like F#'s type providers in the future? Let me present some use case scenarios for this.. Let's suppose you have a TS project trying to access a REST API, and this REST API uses Swagger or RAML for docu...

Open Graph Description: Could we get support for something like F#'s type providers in the future? Let me present some use case scenarios for this.. Let's suppose you have a TS project trying to access a REST API, and thi...

X Description: Could we get support for something like F#'s type providers in the future? Let me present some use case scenarios for this.. Let's suppose you have a TS project trying to access a REST API,...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: F# style Type Provider support?","articleBody":"Could we get support for something like F#'s type providers in the future?\n\nLet me present some use case scenarios for this.. Let's suppose you have a TS project trying to access a REST API, and this REST API uses Swagger or RAML for documentation. Well in this case we could have something like this;\n\n```\nvar fooClient = new SwaggerClient\u003c\"http://foo.com/swagger.json\">();\nfooClient.getPeople((people) => {\n    people.every((person) => console.log(person.firstName + \",\" + person.lastName);\n});\n```\n\nand this could be completely type safe, as the SwaggerClient pulls down the API return types, method names (such as getPeople) and signatures at compile time and exposes them as methods to the type system. I think that's pretty huge. Such clients could be written by the community for RAML, SOAP or what have you.\n\nanother nice one:\n\n```\nvar doc = new Document\u003c\"index.html\">()\ndoc.titleSpan.text = \"Hello World!\";\ndoc.myButton.addListener(\"clicked\", () => { console.log(\"tapped!\")});\n```\n\nIn this example the Document type provider loads our index.html file and finds all the elements with id's and figures out what types they are, and exposes them in the type system at compile time. Again, I think that's pretty huge!\n\nF# uses Type Providers for all kinds of things, so there's lots of ways this can get used. It's easy to see frameworks figuring out all kinds of amazing things that these could be used for. It also feels like a nice fit for TypeScript because it helps bridge the benefits on dynamic typing with the benefits of static typing.\n\none more tiny example:\n\n```\nconsole.log(StringC\u003c\"name:%s/tid:%n\">(\"Battlebottle\", 128));\n```\n\na simple string formatter. This reads \"name:%s/tid:%n\" and knows that %s and %n must be replaced with a string and number respectively, so at compile time it produces a method that accepts a string parameter and a number parameter. Basically a statically typed string formatter. Just a tiny of example of handy little utilities that could be written with this feature. But the opportunity is pretty huge I think in general.\n\nAny thoughts?\n","author":{"url":"https://github.com/battlebottle","@type":"Person","name":"battlebottle"},"datePublished":"2015-05-12T21:36:40Z","url":"https://github.com/microsoft/TypeScript/issues/3136"}

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:153845f4-2a6b-907c-1f6d-f2119bb535fb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8252:317608:751313:961131:6B00E39C
html-safe-nonce932b7af39c8395d2515ab8503de5db17a7b17accd74add97e6124fb87906e795
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjUyOjMxNzYwODo3NTEzMTM6OTYxMTMxOjZCMDBFMzlDIiwidmlzaXRvcl9pZCI6Ijk2NTI3OTAwMjMyOTY3MDU1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac68aa0163b99ae46d0cc69dccef8deea7a9dc6db8cea4310c074ca22da9f5ae18
hovercard-subject-tagissue:75747842
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/3136/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2214635047e17199cbf866d03004f9769b89643b4f00ad0ccd28b0d7f292b088/microsoft/TypeScript/issues/3136
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2214635047e17199cbf866d03004f9769b89643b4f00ad0ccd28b0d7f292b088/microsoft/TypeScript/issues/3136
og:image:altCould we get support for something like F#'s type providers in the future? Let me present some use case scenarios for this.. Let's suppose you have a TS project trying to access a REST API, and thi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebattlebottle
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
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
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/3136#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F3136
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%2F3136
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/3136
Reloadhttps://github.com/microsoft/TypeScript/issues/3136
Reloadhttps://github.com/microsoft/TypeScript/issues/3136
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
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3136
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3136
Feature Request: F# style Type Provider support?https://github.com/microsoft/TypeScript/issues/3136#top
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/battlebottle
Brian Hoary (battlebottle)https://github.com/battlebottle
on May 12, 2015https://github.com/microsoft/TypeScript/issues/3136#issue-75747842
Nexthttps://github.com/microsoft/TypeScript/issues/3136?timeline_page=1
Dan Quirk (danquirk)https://github.com/danquirk
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on May 12, 2015https://github.com/microsoft/TypeScript/issues/3136#event-303278781
https://github.com/saschanaz
Kagami Sascha Rosylight (saschanaz)https://github.com/saschanaz
on May 19, 2015https://github.com/microsoft/TypeScript/issues/3136#issuecomment-103561845
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
on May 19, 2015https://github.com/microsoft/TypeScript/issues/3136#event-308960496
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on May 19, 2015https://github.com/microsoft/TypeScript/issues/3136#issuecomment-103680442
https://github.com/battlebottle
Brian Hoary (battlebottle)https://github.com/battlebottle
on May 21, 2015https://github.com/microsoft/TypeScript/issues/3136#issuecomment-104217223
https://github.com/Lenne231
Lennart (Lenne231)https://github.com/Lenne231
on Jun 19, 2015https://github.com/microsoft/TypeScript/issues/3136#issuecomment-113395435
https://facebook.github.io/react/blog/2015/05/01/graphql-introduction.htmlhttps://facebook.github.io/react/blog/2015/05/01/graphql-introduction.html
https://www.youtube.com/watch?v=z8UgDZ4rXBUhttps://www.youtube.com/watch?v=z8UgDZ4rXBU
https://github.com/Arnavion
Arnav Singh (Arnavion)https://github.com/Arnavion
on Jun 14, 2016https://github.com/microsoft/TypeScript/issues/3136#issuecomment-225974949
#9147https://github.com/microsoft/TypeScript/issues/9147
Wesley Wigham (weswigham)https://github.com/weswigham
on Jun 14, 2016https://github.com/microsoft/TypeScript/issues/3136#event-692552285
https://github.com/MartinJohns
Martin Johns (MartinJohns)https://github.com/MartinJohns
on Jun 15, 2016https://github.com/microsoft/TypeScript/issues/3136#issuecomment-226090420
Arnav Singh (@Arnavion)https://github.com/Arnavion
#6615https://github.com/microsoft/TypeScript/issues/6615
https://github.com/basarat
Basarat Ali Syed (basarat)https://github.com/basarat
on Jun 15, 2016https://github.com/microsoft/TypeScript/issues/3136#issuecomment-226091436
https://github.com/blakeembrey/free-stylehttps://github.com/blakeembrey/free-style
https://medium.com/@basarat/css-modules-are-not-the-solution-1235696863d6https://medium.com/@basarat/css-modules-are-not-the-solution-1235696863d6
https://github.com/MartinJohns
Martin Johns (MartinJohns)https://github.com/MartinJohns
on Jun 15, 2016https://github.com/microsoft/TypeScript/issues/3136#issuecomment-226107329
Basarat Ali Syed (@basarat)https://github.com/basarat
https://github.com/basarat
Basarat Ali Syed (basarat)https://github.com/basarat
on Jun 15, 2016https://github.com/microsoft/TypeScript/issues/3136#issuecomment-226339116
https://github.com/blakeembrey/free-style#css-stringhttps://github.com/blakeembrey/free-style#css-string
https://github.com/felixfbecker
Felix Becker (felixfbecker)https://github.com/felixfbecker
on Aug 28, 2016https://github.com/microsoft/TypeScript/issues/3136#issuecomment-242987369
https://github.com/elcritch
Jaremy Creechley (elcritch)https://github.com/elcritch
on Sep 20, 2016https://github.com/microsoft/TypeScript/issues/3136#issuecomment-248312756
Jaremy Creechley (elcritch)https://github.com/elcritch
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 20, 2016https://github.com/microsoft/TypeScript/issues/3136#event-795706459
https://github.com/leebyron
Lee Byron (leebyron)https://github.com/leebyron
on Dec 4, 2018https://github.com/microsoft/TypeScript/issues/3136#issuecomment-443977156
Wesley Wigham (@weswigham)https://github.com/weswigham
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Dec 4, 2018https://github.com/microsoft/TypeScript/issues/3136#issuecomment-444030291
https://github.com/vmgolubev
Vladimir Golubev (vmgolubev)https://github.com/vmgolubev
on Dec 4, 2018https://github.com/microsoft/TypeScript/issues/3136#issuecomment-444072114
https://github.com/xialvjun
xialvjun (xialvjun)https://github.com/xialvjun
on Aug 17, 2019https://github.com/microsoft/TypeScript/issues/3136#issuecomment-522266539
https://github.com/nikeee
Niklas Mollenhauer (nikeee)https://github.com/nikeee
on Jun 8, 2020https://github.com/microsoft/TypeScript/issues/3136#issuecomment-640679297
https://github.com/JasonKleban
JasonKlebanhttps://github.com/JasonKleban
on Jul 22, 2020https://github.com/microsoft/TypeScript/issues/3136#issuecomment-662509975
https://github.com/ozyman42
Alex Leung (ozyman42)https://github.com/ozyman42
on Jul 22, 2020https://github.com/microsoft/TypeScript/issues/3136#issuecomment-662527451
#14419https://github.com/microsoft/TypeScript/issues/14419
https://github.com/maxpain
Max Makarov (maxpain)https://github.com/maxpain
on Jun 4, 2021https://github.com/microsoft/TypeScript/issues/3136#issuecomment-854614000
https://github.com/trusktr
Joe Pea (trusktr)https://github.com/trusktr
on Nov 1, 2021https://github.com/microsoft/TypeScript/issues/3136#issuecomment-956060620
https://github.com/Dessix
Zoey (Dessix)https://github.com/Dessix
on Nov 1, 2021https://github.com/microsoft/TypeScript/issues/3136#issuecomment-956135618
https://github.com/infogulch
Joe Taber (infogulch)https://github.com/infogulch
on Nov 1, 2021https://github.com/microsoft/TypeScript/issues/3136#issuecomment-956635457
Joe Pea (@trusktr)https://github.com/trusktr
Zoey (@Dessix)https://github.com/Dessix
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
on Oct 29, 2026https://github.com/microsoft/TypeScript/issues/3136#event-34611326274
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 29, 2026https://github.com/microsoft/TypeScript/issues/3136#issuecomment-6503025751
https://devblogs.microsoft.com/typescript/announcing-typescript-7-1-beta/#content-mappershttps://devblogs.microsoft.com/typescript/announcing-typescript-7-1-beta/#content-mappers
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 29, 2026https://github.com/microsoft/TypeScript/issues/3136#event-34611328282
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/3136
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3136
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
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.