René's URL Explorer Experiment


Title: Add Support for design-time decorators · Issue #2900 · microsoft/TypeScript · GitHub

Open Graph Title: Add Support for design-time decorators · Issue #2900 · microsoft/TypeScript

X Title: Add Support for design-time decorators · Issue #2900 · microsoft/TypeScript

Description: Now that decorators are supported in TypeScript (#2249), consider adding support for ambient/design-time-only decorators: Ambient decorators can be an extensible way to declare properties on or associate special behavior to declarations;...

Open Graph Description: Now that decorators are supported in TypeScript (#2249), consider adding support for ambient/design-time-only decorators: Ambient decorators can be an extensible way to declare properties on or ass...

X Description: Now that decorators are supported in TypeScript (#2249), consider adding support for ambient/design-time-only decorators: Ambient decorators can be an extensible way to declare properties on or ass...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add Support for design-time decorators","articleBody":"Now that decorators are supported in TypeScript (#2249), consider adding support for ambient/design-time-only decorators:\n\nAmbient decorators can be an extensible way to declare properties on or associate special behavior to declarations; design time tools can leverage these associations to produce errors or produce documentation. For example:\n#### Use cases:\n- Deprecated/Obsolete, to support warning on use of specific API’s:\n\n``` ts\ninterface JQuery {  \n    /**  \n     * A selector representing selector passed to jQuery(), if any, when creating the original set.  \n     * version deprecated: 1.7, removed: 1.9  \n     */  \n    @@deprecated(\"Property is only maintained to the extent needed for supporting .live() in the jQuery Migrate plugin. It may be removed without notice in a future version.\", false)  \n    selector: string;  \n}\n```\n- Suppress linter warning:\n\n``` ts\n@@suppressWarning(\"disallow-leading-underscore\")   \nfunction __init() {  \n}\n```\n#### Proposal\n\nDesign-time (Ambient) decorators are:\n- ambient functions\n- have a special name starting with \"@\"\n- are not emitted in output JS code, but persisted in .d.ts outputs.\n\nApplication\n- Applying a design-time can only accept constant values. Variables would not be observable by the compiler at compile time. Here is the set of possible values:\n  - string literal,\n  - number literal,\n  - regexp literal,\n  - true keyword,\n  - false keyword,\n  - null keyword,\n  - undefined symbol,\n  - const enum members,\n  - array literals of one of the previous kinds,\n  - object literal with only properties with values of one of the previous kinds\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2015-04-24T01:51:01Z","url":"https://github.com/microsoft/TypeScript/issues/2900"}

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:5083ad31-5310-5946-3a21-1ea4b43e2845
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB7FA:BBAAA:72419C:98F200:6B00D762
html-safe-nonced386e0a13f6148bb1fc8f5dc6a0ff6ca5739fb4c6bd3398d70876c42a5790708
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0ZBOkJCQUFBOjcyNDE5Qzo5OEYyMDA6NkIwMEQ3NjIiLCJ2aXNpdG9yX2lkIjoiNTE1NTk2MjA1NjExMzQxNjY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfdc540bd981761169f853db6a715a6d7d240706fefc7e5386abba46d5b62878c
hovercard-subject-tagissue:70560585
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/2900/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ac5e88ba4cc4d5681e8d12759e68de69487b3c616e02245e58ff5203dac5bdc3/microsoft/TypeScript/issues/2900
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ac5e88ba4cc4d5681e8d12759e68de69487b3c616e02245e58ff5203dac5bdc3/microsoft/TypeScript/issues/2900
og:image:altNow that decorators are supported in TypeScript (#2249), consider adding support for ambient/design-time-only decorators: Ambient decorators can be an extensible way to declare properties on or ass...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemhegazy
hostnamegithub.com
expected-hostnamegithub.com
Nonea481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b
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
release84c8c5cc25e2fb7f2308428458538436baecc6d2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/2900#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F2900
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%2F2900
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/2900
Reloadhttps://github.com/microsoft/TypeScript/issues/2900
Reloadhttps://github.com/microsoft/TypeScript/issues/2900
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests307 (307)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/2900
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/2900
Add Support for design-time decoratorshttps://github.com/microsoft/TypeScript/issues/2900#top
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
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Apr 24, 2015https://github.com/microsoft/TypeScript/issues/2900#issue-70560585
#2249https://github.com/microsoft/TypeScript/issues/2249
Nexthttps://github.com/microsoft/TypeScript/issues/2900?timeline_page=1
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Apr 24, 2015https://github.com/microsoft/TypeScript/issues/2900#event-288878923
https://github.com/matjaz
Matjaž Lipuš (matjaz)https://github.com/matjaz
on May 12, 2015https://github.com/microsoft/TypeScript/issues/2900#issuecomment-101206626
https://github.com/angular/angular.js/wiki/Writing-AngularJS-Documentationhttps://github.com/angular/angular.js/wiki/Writing-AngularJS-Documentation
https://github.com/bradolenick
Brad Olenick (bradolenick)https://github.com/bradolenick
on Jun 5, 2015https://github.com/microsoft/TypeScript/issues/2900#issuecomment-109468704
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Sep 17, 2015https://github.com/microsoft/TypeScript/issues/2900#event-412503296
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Dec 24, 2015https://github.com/microsoft/TypeScript/issues/2900#issuecomment-167066411
Ron Buckton (@rbuckton)https://github.com/rbuckton
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 22, 2016https://github.com/microsoft/TypeScript/issues/2900#issuecomment-173892970
Kitson Kelly (@kitsonk)https://github.com/kitsonk
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jan 22, 2016https://github.com/microsoft/TypeScript/issues/2900#issuecomment-173917526
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
C# TypeBuilder.CreateTypehttps://msdn.microsoft.com/en-us/library/system.reflection.emit.typebuilder.createtype%28v=vs.110%29.aspx
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 22, 2016https://github.com/microsoft/TypeScript/issues/2900#issuecomment-173991104
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jan 22, 2016https://github.com/microsoft/TypeScript/issues/2900#issuecomment-174009776
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 23, 2016https://github.com/microsoft/TypeScript/issues/2900#issuecomment-174093675
#6502 (comment)https://github.com/microsoft/TypeScript/issues/6502#issuecomment-173312747
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jan 23, 2016https://github.com/microsoft/TypeScript/issues/2900#issuecomment-174157181
#3870https://github.com/microsoft/TypeScript/issues/3870
#6502https://github.com/microsoft/TypeScript/issues/6502
#6502https://github.com/microsoft/TypeScript/issues/6502
#311https://github.com/microsoft/TypeScript/issues/311
https://github.com/silkentrance
Carsten Klein (silkentrance)https://github.com/silkentrance
on Mar 4, 2016https://github.com/microsoft/TypeScript/issues/2900#issuecomment-192390083
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Mar 4, 2016https://github.com/microsoft/TypeScript/issues/2900#issuecomment-192419032
https://github.com/silkentrance
Carsten Klein (silkentrance)https://github.com/silkentrance
on Mar 4, 2016https://github.com/microsoft/TypeScript/issues/2900#issuecomment-192425972
Kitson Kelly (@kitsonk)https://github.com/kitsonk
https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Decorators.mdhttps://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Decorators.md
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Mar 4, 2016https://github.com/microsoft/TypeScript/issues/2900#issuecomment-192430227
Carsten Klein (@silkentrance)https://github.com/silkentrance
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/brn
Taketoshi Aono (brn)https://github.com/brn
on Sep 18, 2017https://github.com/microsoft/TypeScript/issues/2900#issuecomment-330258976
https://github.com/Nufflee
Nufflee (Nufflee)https://github.com/Nufflee
on May 27, 2018https://github.com/microsoft/TypeScript/issues/2900#issuecomment-392360172
#20724https://github.com/microsoft/TypeScript/issues/20724
https://github.com/thetutlage
Harminder Virk (thetutlage)https://github.com/thetutlage
on Mar 19, 2020https://github.com/microsoft/TypeScript/issues/2900#issuecomment-600998237
#4881 (comment)https://github.com/microsoft/TypeScript/issues/4881#issuecomment-142131626
https://github.com/kingsimba
Feng Zhaolin (kingsimba)https://github.com/kingsimba
on May 21, 2020https://github.com/microsoft/TypeScript/issues/2900#issuecomment-631997278
https://github.com/shicks
Stephen Hicks (shicks)https://github.com/shicks
on Sep 15, 2020https://github.com/microsoft/TypeScript/issues/2900#issuecomment-692933449
Support final classes (non-subclassable) #8306https://github.com/microsoft/TypeScript/issues/8306
Support final methods #33446https://github.com/microsoft/TypeScript/issues/33446
add a flag to disable () => void being subtype of () => a #8584https://github.com/microsoft/TypeScript/issues/8584
https://github.com/aminya
Amin Ya (aminya)https://github.com/aminya
on Nov 14, 2020https://github.com/microsoft/TypeScript/issues/2900#issuecomment-727099250
https://github.com/Jarred-Sumner
Jarred Sumner (Jarred-Sumner)https://github.com/Jarred-Sumner
on Feb 21, 2021https://github.com/microsoft/TypeScript/issues/2900#issuecomment-782790216
https://github.com/jarred-sumner/deckyhttps://github.com/jarred-sumner/decky
https://github.com/shicks
Stephen Hicks (shicks)https://github.com/shicks
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/2900#issuecomment-1109051489
https://github.com/weiqj
Qingjun Wei (weiqj)https://github.com/weiqj
on Mar 21, 2023https://github.com/microsoft/TypeScript/issues/2900#issuecomment-1478619478
https://github.com/weiqj
Qingjun Wei (weiqj)https://github.com/weiqj
on Mar 24, 2023https://github.com/microsoft/TypeScript/issues/2900#issuecomment-1483161963
https://user-images.githubusercontent.com/5838689/227596546-76f93dc6-e0a8-4964-8972-8dc911c2d7e3.png
https://github.com/rbuckton
Ron Buckton (rbuckton)https://github.com/rbuckton
on Mar 24, 2023https://github.com/microsoft/TypeScript/issues/2900#issuecomment-1483496173
https://github.com/weiqj
Qingjun Wei (weiqj)https://github.com/weiqj
on Mar 25, 2023https://github.com/microsoft/TypeScript/issues/2900#issuecomment-1483660673
https://github.com/shicks
Stephen Hicks (shicks)https://github.com/shicks
on Mar 25, 2023https://github.com/microsoft/TypeScript/issues/2900#issuecomment-1483720904
Tag types #4895https://github.com/microsoft/TypeScript/issues/4895
https://github.com/weiqj
Qingjun Wei (weiqj)https://github.com/weiqj
on Mar 25, 2023https://github.com/microsoft/TypeScript/issues/2900#issuecomment-1483844836
https://user-images.githubusercontent.com/5838689/227724591-40fff2d7-a36b-4d26-88ae-b69fe5c110c3.png
https://user-images.githubusercontent.com/5838689/227724830-b1752b6d-b4d4-498f-8748-e89ffa51941f.png
https://github.com/hydroper
Hydroper (hydroper)https://github.com/hydroper
on Jun 16, 2023https://github.com/microsoft/TypeScript/issues/2900#issuecomment-1595323065
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/2900
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/2900
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
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.