René's URL Explorer Experiment


Title: Discussion: (Reflective) Type Model · Issue #3628 · microsoft/TypeScript · GitHub

Open Graph Title: Discussion: (Reflective) Type Model · Issue #3628 · microsoft/TypeScript

X Title: Discussion: (Reflective) Type Model · Issue #3628 · microsoft/TypeScript

Description: Hi all, We currently have a AST model for TypeScript which is useful for compilers, editors, and linters. However, it would be extremely useful to have a type model, a la Java's reflective model. There are a huge number of use-cases supp...

Open Graph Description: Hi all, We currently have a AST model for TypeScript which is useful for compilers, editors, and linters. However, it would be extremely useful to have a type model, a la Java's reflective model. T...

X Description: Hi all, We currently have a AST model for TypeScript which is useful for compilers, editors, and linters. However, it would be extremely useful to have a type model, a la Java's reflective mode...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Discussion: (Reflective) Type Model","articleBody":"Hi all,\n\nWe currently have a AST model for TypeScript which is useful for compilers, editors, and linters.\n\nHowever, it would be extremely useful to have a type model, a la Java's reflective model. There are a huge number of use-cases supporting this, but I will list a few here:\n- I have a REST interface and I define a data model for it as a TypeScript interface. I use this interface for the function definition of the REST implementation, but then use the type model to validate the input at runtime.\n- I have a service model that abstracts an interface for some system (database, or application, etc.). I define this as a TypeScript interface (maybe with some decorators as meta-data), and have a generator library that extracts this information to either generate code - or create a runtime implementation - that actually implements the service.\n- I have an injection (DI) system. I use injection decorators on class properties/constructor parameters, and use the type model to reflectively wire the correct instance.\n\nA good example of what could be achieved with this, is something like the Spring platform for Java where our applications are built as decorated components and most of the boilerplate code is abstracted away by the platform thanks to reflection and decorators.\n\nI have a \"first stab\" at implementing such a thing: [typescript-schema](https://github.com/christyharagan/ts-schema). It's not feature complete and the design isn't finished either. But hopefully it gives a feel for what a reflective model could look like.\n\nIs this something the TypeScript team would be interested in having as a first class citizen?\n","author":{"url":"https://github.com/christyharagan","@type":"Person","name":"christyharagan"},"datePublished":"2015-06-25T08:40:13Z","url":"https://github.com/microsoft/TypeScript/issues/3628"}

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:bef63b75-5c76-ba41-f35c-aac626fd867f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA8C8:95C88:823334:AED53B:6B00DD47
html-safe-nonce2264b51a9d00e10b5a41034a965500da36dd7c44e7630fe9206a9de3b59bcd87
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEM4Ojk1Qzg4OjgyMzMzNDpBRUQ1M0I6NkIwMERENDciLCJ2aXNpdG9yX2lkIjoiNTc1MzUzMjQ1MjQxNzYxMDk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac60c2db692ade8038b7d1980590454e01e078f2c31c23d94609478d9a17019cc6
hovercard-subject-tagissue:90896359
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/3628/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5d4d3b94d61bfb009089f3100423b4de0211f3783c3d61e3fd66b0fa7a2c7447/microsoft/TypeScript/issues/3628
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5d4d3b94d61bfb009089f3100423b4de0211f3783c3d61e3fd66b0fa7a2c7447/microsoft/TypeScript/issues/3628
og:image:altHi all, We currently have a AST model for TypeScript which is useful for compilers, editors, and linters. However, it would be extremely useful to have a type model, a la Java's reflective model. T...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechristyharagan
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
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
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/3628#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F3628
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%2F3628
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/3628
Reloadhttps://github.com/microsoft/TypeScript/issues/3628
Reloadhttps://github.com/microsoft/TypeScript/issues/3628
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)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/3628
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3628
Discussion: (Reflective) Type Modelhttps://github.com/microsoft/TypeScript/issues/3628#top
DeclinedThe issue was declined as something which matches the TypeScript visionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Declined%22
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
Out of ScopeThis idea sits outside of the TypeScript language design constraintshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Out%20of%20Scope%22
https://github.com/christyharagan
Christy Haragan (christyharagan)https://github.com/christyharagan
on Jun 25, 2015https://github.com/microsoft/TypeScript/issues/3628#issue-90896359
typescript-schemahttps://github.com/christyharagan/ts-schema
Nexthttps://github.com/microsoft/TypeScript/issues/3628?timeline_page=1
https://github.com/danquirk
Dan Quirk (danquirk)https://github.com/danquirk
on Jun 25, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-115367303
#2577https://github.com/microsoft/TypeScript/issues/2577
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jun 25, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-115388950
#3136https://github.com/microsoft/TypeScript/issues/3136
Dan Quirk (danquirk)https://github.com/danquirk
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Jul 8, 2015https://github.com/microsoft/TypeScript/issues/3628#event-351129366
https://github.com/tobich
Jiri Tobisek (tobich)https://github.com/tobich
on Aug 16, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-131509171
Dan Quirk (@danquirk)https://github.com/danquirk
jonathandturnerhttps://github.com/jonathandturner
http://blogs.msdn.com/b/typescript/archive/2015/03/05/angular-2-0-built-on-typescript.aspxhttp://blogs.msdn.com/b/typescript/archive/2015/03/05/angular-2-0-built-on-typescript.aspx
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Aug 17, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-131912605
https://github.com/sophiajt
Sophia J. Turner (sophiajt)https://github.com/sophiajt
on Aug 17, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-131937151
https://github.com/remojansen
Remo H. Jansen (remojansen)https://github.com/remojansen
on Sep 14, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-140223910
#2589https://github.com/microsoft/TypeScript/pull/2589
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Sep 14, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-140225061
https://github.com/remojansen
Remo H. Jansen (remojansen)https://github.com/remojansen
on Sep 15, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-140314894
https://github.com/christyharagan
Christy Haragan (christyharagan)https://github.com/christyharagan
on Sep 15, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-140346200
typescript-schemahttps://github.com/christyharagan/ts-schema
typescript-packagehttps://github.com/christyharagan/typescript-package
https://github.com/remojansen
Remo H. Jansen (remojansen)https://github.com/remojansen
on Sep 21, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-142123462
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
#4905https://github.com/microsoft/TypeScript/issues/4905
https://github.com/asvetliakov
Alexey Svetliakov (asvetliakov)https://github.com/asvetliakov
on Sep 26, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-143389801
https://github.com/mikekhaas
Mike Haas (mikekhaas)https://github.com/mikekhaas
on Oct 3, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-145278649
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Oct 5, 2015https://github.com/microsoft/TypeScript/issues/3628#issuecomment-145699892
mikehaas763https://github.com/mikehaas763
https://github.com/rezonant
William Lahti (rezonant)https://github.com/rezonant
on Feb 7, 2022https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1031250895
https://github.com/Hookyns
Roman Jámbor (Hookyns)https://github.com/Hookyns
on Feb 14, 2022https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1038991673
Andrew Schmadel (@schmod)https://github.com/schmod
Andy Kutruff (@akutruff)https://github.com/akutruff
Jiri Spac (@capaj)https://github.com/capaj
tst-reflecthttps://github.com/Hookyns/ts-reflection
REPLhttps://replit.com/@Hookyns/tst-reflect-validate#src/index.ts
REPLhttps://replit.com/@Hookyns/tst-reflect-validate2#src/index.ts
https://github.com/rezonant
William Lahti (rezonant)https://github.com/rezonant
on Feb 23, 2022https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1049232307
https://typescript-rtti.orghttps://typescript-rtti.org
https://github.com/avin-kavish
Avin (avin-kavish)https://github.com/avin-kavish
on Sep 2, 2022https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1235173557
https://github.com/mindplay-dk
Rasmus Schultz (mindplay-dk)https://github.com/mindplay-dk
on Oct 1, 2022https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1264414488
DeepKithttps://deepkit.io/
https://github.com/akutruff
Andy Kutruff (akutruff)https://github.com/akutruff
on Jul 10, 2023https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1629102064
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
https://github.com/akutruff/typescript-needs-typeshttps://github.com/akutruff/typescript-needs-types
https://github.com/Hookyns
Roman Jámbor (Hookyns)https://github.com/Hookyns
on Jul 10, 2023https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1629194014
tst-reflecthttps://github.com/Hookyns/tst-reflect
https://github.com/akutruff
Andy Kutruff (akutruff)https://github.com/akutruff
on Jul 11, 2023https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1630884751
#44261https://github.com/microsoft/TypeScript/issues/44261
https://github.com/Hookyns
Roman Jámbor (Hookyns)https://github.com/Hookyns
on Jul 11, 2023https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1631007075
Ability to decorate abstract members/classes/interfaceshttps://github.com/microsoft/TypeScript/issues/37067
https://github.com/mindplay-dk
Rasmus Schultz (mindplay-dk)https://github.com/mindplay-dk
on Jul 12, 2023https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1632151808
Ability to decorate abstract members/classes/interfaceshttps://github.com/microsoft/TypeScript/issues/37067
Roman Jámbor (@Hookyns)https://github.com/Hookyns
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Jul 13, 2023https://github.com/microsoft/TypeScript/issues/3628#issuecomment-1634916613
a repo listing all the runtime type-checking librarieshttps://github.com/akutruff/typescript-needs-types
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
herehttps://news.ycombinator.com/item?id=36638297
I've mentioned in the same threadhttps://news.ycombinator.com/item?id=36638486
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 13, 2023https://github.com/microsoft/TypeScript/issues/3628#event-9815587024
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
DeclinedThe issue was declined as something which matches the TypeScript visionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Declined%22
Out of ScopeThis idea sits outside of the TypeScript language design constraintshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Out%20of%20Scope%22
on Jul 13, 2023https://github.com/microsoft/TypeScript/issues/3628#event-9815588974
microsofthttps://github.com/microsoft
on Jul 13, 2023https://github.com/microsoft/TypeScript/issues/3628#event-9815590711
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/3628
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3628
DeclinedThe issue was declined as something which matches the TypeScript visionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Declined%22
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
Out of ScopeThis idea sits outside of the TypeScript language design constraintshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Out%20of%20Scope%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.