René's URL Explorer Experiment


Title: [Feature Request] Proposal for type annotations as comments · Issue #48650 · microsoft/TypeScript · GitHub

Open Graph Title: [Feature Request] Proposal for type annotations as comments · Issue #48650 · microsoft/TypeScript

X Title: [Feature Request] Proposal for type annotations as comments · Issue #48650 · microsoft/TypeScript

Description: Problem There are many authors that want to use TypeScript without a build step JSDoc is a verbose substitute for TypeScript and doesn't support all TS features. The above 2 problem statements are articulated in https://github.com/tc39/p...

Open Graph Description: Problem There are many authors that want to use TypeScript without a build step JSDoc is a verbose substitute for TypeScript and doesn't support all TS features. The above 2 problem statements are ...

X Description: Problem There are many authors that want to use TypeScript without a build step JSDoc is a verbose substitute for TypeScript and doesn't support all TS features. The above 2 problem statements ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature Request] Proposal for type annotations as comments","articleBody":"# Problem\r\n\r\n1. There are many authors that want to use TypeScript without a build step\r\n2. JSDoc is a verbose substitute for TypeScript and doesn't support all TS features.\r\n3. The above 2 problem statements are articulated in https://github.com/tc39/proposal-type-annotations, but it's unclear if that proposal will be accepted, and it would be a more limited subset of TypeScript. This could be implemented today, with a much lower lift.\r\n\r\n# Suggestion\r\n\r\nThis is not a new idea. It is a fleshed-out proposal for https://github.com/microsoft/TypeScript/issues/9694 and is also based on the prior art of https://flow.org/en/docs/types/comments/. #9694 was marked as \"Needs Proposal\" so this is an attempt at that proposal. (There is also[ prior art / similar conclusions & asks](https://github.com/tc39/proposal-type-annotations/issues/127#issuecomment-1083374687) in the issue threads of the TC39 proposal.)\r\n\r\n## 🔍 Search Terms\r\n\r\n\"jsdoc alternative\", \"jsdoc\", \"flotate\", \"flow comments\"\r\n\r\n## ✅ Viability 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, new syntax sugar for JS, 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\r\n\r\n## ⭐ Proposal\r\n\r\nA JavaScript file would be preceded by \r\n```js\r\n// @ts\r\n```\r\nThe reason this is needed is to indicate the author's intent at\r\n1. Type-checking this JavaScript file as adhering to _all_ of TypeScript's restraints (the TSConfig file), so a stronger version of `@ts-check`.\r\n2. Interpreting special comments as TypeScript types / blocks\r\n\r\nTypes of comment blocks:\r\n\r\n- `/*: Foo*/` is the equivalent of `: Foo` (a type) in TypeScript. Other type modifiers like `/*?: Foo */` are also interpreted plainly as `?: Foo`\r\n- `/*:: statement*/` is the equivalent of `statement` in TypeScript, and used to mark complete `type` / `interface` blocks and other types of assertions.\r\n- Intuitively, an author may use `//:` and `//::` when the type / type import occupies the whole line / remainder of the line\r\n\r\nHere's a basic example, borrowed from Flow:\r\n```js\r\n// @ts\r\n\r\n/*::\r\ntype MyAlias = {\r\n  foo: number,\r\n  bar: boolean,\r\n  baz: string,\r\n};\r\n*/\r\n\r\nfunction method(value /*: MyAlias */) /*: boolean */ {\r\n  return value.bar;\r\n}\r\n\r\nmethod({ foo: 1, bar: true, baz: [\"oops\"] });\r\n```\r\nThe TypeScript compiler would interpret `/*: */` and `/*:: */` as type annotations for TypeScript, making the entire JavaScript file a complete and valid TypeScript file, something that JSDoc does not provide.\r\n\r\nHere are some other examples, borrowed from the TC39 proposal:\r\n```js\r\nfunction stringsStringStrings(p1 /*: string */, p2 /*?: string */, p3 /*?: string */, p4 = \"test\") /*: string */ {\r\n    // TODO\r\n}\r\n\r\n/*::\r\ninterface Person {\r\n    name: string;\r\n    age: number;\r\n}\r\ntype CoolBool = boolean;\r\n*/\r\n```\r\n\r\n```js\r\n//:: import type { Person } from \"schema\"\r\n\r\nlet person //: Person\r\n```\r\n```js\r\n// Type assertion\r\nconst point = JSON.parse(serializedPoint) //:: as ({ x: number, y: number })\r\n\r\n// Non-nullable assertion - a little verbose, but works where JSDoc doesn't!\r\ndocument.getElementById(\"entry\")/*:: ! */.innerText = \"...\"\r\n\r\n// Generics\r\nclass Box /*:: \u003cT> */ {\r\n    value /*: T */;\r\n    constructor(value /*: T */) {\r\n        this.value = value;\r\n    }\r\n}\r\n\r\n// Generic invocations\r\nadd/*:: \u003cnumber> */(4, 5)\r\nnew Point/*:: \u003cbigint> */(4n, 5n)\r\n\r\n// this parameter \r\nfunction sum(/*:: this: SomeType, */ x /*: number */, y /*: number */) {\r\n    return x + y\r\n}\r\n\r\n// The above can be written in a more organized fashion like\r\n/*::\r\ntype SumFunction = (this: SomeType, x: number, y: number) => number\r\n*/\r\nconst sum /*: SumFunction */ = function (x, y) {\r\n    return x + y\r\n}\r\n\r\n// Function overloads - the TC39 proposal (and JSDoc?) cannot support this\r\n/*::\r\nfunction foo(x: number): number\r\nfunction foo(x: string): string;\r\n*/\r\nfunction foo(x /*: string | number */) /*: string | number */ {\r\n    if (typeof x === number) {\r\n          return x + 1\r\n    }\r\n    else {\r\n        return x + \"!\"\r\n    }\r\n}\r\n\r\n// Class and field modifiers\r\nclass Point {\r\n    //:: public readonly\r\n    x //: number\r\n}\r\n```\r\n\r\n**Important Note:** an author should not be able to put _any_ content in `/*:: */` blocks. For example, this should be flagged as invalid:\r\n```js\r\n/*::\r\nfunction method(value: MyAlias): boolean {\r\n  return value.bar;\r\n}\r\n*/\r\n\r\nmethod({ foo: 1, bar: true, baz: [\"oops\"] });\r\n```\r\nYes, the content of the `/*:: */` is \"valid TypeScript\", but the engine should distinguish between type annotations / assertions from code that is to be available at runtime.\r\n\r\n## 📃 Motivating Example\r\n\r\nA lot of the motivations for this are the exact same as https://github.com/tc39/proposal-type-annotations; but this approach just solves it a different way, and could be done much sooner. The TypeScript engine would need to do little more than replace comment blocks in conforming `.js` files and then just immediately treat it as if it were a plain ol' TypeScript file.\r\n\r\n## 💻 Use Cases\r\n\r\n**What do you want to use this for?**\r\nThis would allow teams / individuals / myself to use TypeScript without a build step! Gone would be \"compile times\" while developing.\r\n\r\n**What shortcomings exist with other approaches?**\r\n\r\n1. The TC39 proposal is more limited than this proposal, for syntax space reasons\r\n2. JSDoc-based type-checking is more limited than this proposal, in that it doesn't support certain types, imports / exports, and as extensive of type-checking. This would support full type-checking of JavaScript.\r\n\r\n**What shortcomings exist with this approach?**\r\n\r\n1. This is, of course, more verbose than plain TypeScript but it is, it should be noted, much less verbose than using JSDoc for typing (and would support all of TypeScript, unlike JSDoc).\r\n3. There would be, of course, some tooling support that wouldn't be present at first. For example, linters would need / want to be \"TypeScript-aware\", to lint the code within comment blocks. And code coloring / Intellisense should work in IDEs like VSCode to treat comment blocks like plain TypeScript. But I would anticipate support coming quickly from the community.\r\n4. The author would need to be aware that this is really just for type annotations. That is, one could not put any runtime TypeScript in `/*:: */` because that would defeat the purpose. So there may be some initial confusion around usage. See the above example.\r\n\r\n**What workarounds are you using in the meantime?**\r\nThere are no current workarounds, to meet these particular goals. If you a) want to use all of TypeScript, b) don't want a build step in your JS files, there is no solution. Also, to again re-iterate the point, the TC39 proposal would also not meet these goals (like JSDoc, it also cannot support all of TypeScript), so there are benefits of doing this regardless of the outcome of that proposal.","author":{"url":"https://github.com/matthew-dean","@type":"Person","name":"matthew-dean"},"datePublished":"2022-04-12T02:11:25Z","url":"https://github.com/microsoft/TypeScript/issues/48650"}

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:43719b6a-4120-b957-7d4e-9662449e4cdb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB340:29FFA9:2359F41:2CC249D:6B017CCF
html-safe-nonce85dbe3308db694ea742e06fde5d2e0c549e160046a3c553b3fbf3df29bf8fbf7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzQwOjI5RkZBOToyMzU5RjQxOjJDQzI0OUQ6NkIwMTdDQ0YiLCJ2aXNpdG9yX2lkIjoiNTA0ODQwNjM0Nzk0MzYwNzUwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac272ed37b2f27c2155718233b17d2f27ef24bb5786b7f1184b76e420578991f74
hovercard-subject-tagissue:1200825914
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/48650/issue_layout
twitter:imagehttps://opengraph.githubassets.com/52b2338bb23263384d2e654ebed2933a1d582158dfe8d3aa85d34e4fa6b39c64/microsoft/TypeScript/issues/48650
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/52b2338bb23263384d2e654ebed2933a1d582158dfe8d3aa85d34e4fa6b39c64/microsoft/TypeScript/issues/48650
og:image:altProblem There are many authors that want to use TypeScript without a build step JSDoc is a verbose substitute for TypeScript and doesn't support all TS features. The above 2 problem statements are ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamematthew-dean
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/48650#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F48650
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%2F48650
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/48650
Reloadhttps://github.com/microsoft/TypeScript/issues/48650
Reloadhttps://github.com/microsoft/TypeScript/issues/48650
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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/48650
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/48650
[Feature Request] Proposal for type annotations as commentshttps://github.com/microsoft/TypeScript/issues/48650#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/matthew-dean
Matthew Dean (matthew-dean)https://github.com/matthew-dean
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#issue-1200825914
https://github.com/tc39/proposal-type-annotationshttps://github.com/tc39/proposal-type-annotations
#9694https://github.com/microsoft/TypeScript/issues/9694
https://flow.org/en/docs/types/comments/https://flow.org/en/docs/types/comments/
#9694https://github.com/microsoft/TypeScript/issues/9694
prior art / similar conclusions & askshttps://github.com/tc39/proposal-type-annotations/issues/127#issuecomment-1083374687
TypeScript's Design Goalshttps://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
https://github.com/tc39/proposal-type-annotationshttps://github.com/tc39/proposal-type-annotations
Nexthttps://github.com/microsoft/TypeScript/issues/48650?timeline_page=1
Matthew Dean (matthew-dean)https://github.com/matthew-dean
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#event-6413886385
Matthew Dean (matthew-dean)https://github.com/matthew-dean
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#event-6413892011
https://github.com/Jack-Works
Jack Works (Jack-Works)https://github.com/Jack-Works
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1095874003
https://github.com/lillallol
lillallolhttps://github.com/lillallol
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1096222843
https://github.com/matthew-dean
Matthew Dean (matthew-dean)https://github.com/matthew-dean
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1096799910
Jack Works (@Jack-Works)https://github.com/Jack-Works
https://github.com/matthew-dean
Matthew Dean (matthew-dean)https://github.com/matthew-dean
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1096814855
lillallolhttps://github.com/lillallol
https://github.com/matthew-dean
Matthew Dean (matthew-dean)https://github.com/matthew-dean
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1096821507
lillallolhttps://github.com/lillallol
https://github.com/lillallol
lillallolhttps://github.com/lillallol
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1096905020
Matthew Dean (@matthew-dean)https://github.com/matthew-dean
https://github.com/matthew-dean
Matthew Dean (matthew-dean)https://github.com/matthew-dean
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1097020996
lillallolhttps://github.com/lillallol
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Apr 12, 2022https://github.com/microsoft/TypeScript/issues/48650#event-6422665738
https://github.com/lillallol
lillallolhttps://github.com/lillallol
on Apr 13, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1097571512
herehttps://github.com/tc39/proposal-type-annotations/issues/134#issuecomment-1087343414
https://github.com/simonbuchan
Simon Buchan (simonbuchan)https://github.com/simonbuchan
on Apr 13, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1097902311
https://github.com/dfabulich
Dan Fabulich (dfabulich)https://github.com/dfabulich
on Apr 14, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1098726030
imported it wholesalehttps://flow.org/blog/2015/02/20/Flow-Comments/
flotatehttps://github.com/jareware/flotate
https://github.com/simonbuchan
Simon Buchan (simonbuchan)https://github.com/simonbuchan
on Apr 14, 2022https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1098747023
Dan Fabulich (@dfabulich)https://github.com/dfabulich
https://github.com/theScottyJam
Scotty Jamison (theScottyJam)https://github.com/theScottyJam
on May 7, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2097136010
https://github.com/theScottyJam
Scotty Jamison (theScottyJam)https://github.com/theScottyJam
on May 7, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2097168641
https://github.com/piranna
Jesús Leganés-Combarro (piranna)https://github.com/piranna
on May 7, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2097447558
Scotty Jamison (@theScottyJam)https://github.com/theScottyJam
https://github.com/somebody1234
somebody1234https://github.com/somebody1234
on May 7, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2097466169
Jesús Leganés-Combarro (@piranna)https://github.com/piranna
https://github.com/theScottyJam
Scotty Jamison (theScottyJam)https://github.com/theScottyJam
on May 7, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2097488885
Jesús Leganés-Combarro (@piranna)https://github.com/piranna
somebody1234https://github.com/somebody1234
https://github.com/piranna
Jesús Leganés-Combarro (piranna)https://github.com/piranna
on May 7, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2097504004
Jesús Leganés-Combarro (@piranna)https://github.com/piranna
https://github.com/piranna
Jesús Leganés-Combarro (piranna)https://github.com/piranna
on May 7, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2097512087
https://github.com/airbnb/ts-migratehttps://github.com/airbnb/ts-migrate
https://github.com/JoshuaKGoldberg/TypeStathttps://github.com/JoshuaKGoldberg/TypeStat
https://github.com/trusktr
Joe Pea (trusktr)https://github.com/trusktr
on May 11, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2106054350
Scotty Jamison (@theScottyJam)https://github.com/theScottyJam
[Feature Request] Proposal for type annotations as comments #48650 (comment)https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1721578187
[Feature Request] Proposal for type annotations as comments #48650 (comment)https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1721864974
[Feature Request] Proposal for type annotations as comments #48650 (comment)https://github.com/microsoft/TypeScript/issues/48650#issuecomment-1730818001
https://github.com/theScottyJam
Scotty Jamison (theScottyJam)https://github.com/theScottyJam
on May 12, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2106102382
https://github.com/trusktr
Joe Pea (trusktr)https://github.com/trusktr
on May 19, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2119050049
https://private-user-images.githubusercontent.com/297678/331839745-60c16087-2255-4e8a-89bc-f803ff15d845.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNTk5MDAsIm5iZiI6MTc5NTI1OTYwMCwicGF0aCI6Ii8yOTc2NzgvMzMxODM5NzQ1LTYwYzE2MDg3LTIyNTUtNGU4YS04OWJjLWY4MDNmZjE1ZDg0NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyMVQxMTEzMjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lYTM1NDNlYjJkZjc4Zjk0MDFlZTE2ZTM0YjA4MTNiOTlmNDIwMWNmYTlhYmE0M2MyZmNkODM0NDAxOTM5ZDhkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.PsUyiztOCphVTmDLGsUnWaD2vQtpu1jfE9zajjPuI2g
https://github.com/trusktr
Joe Pea (trusktr)https://github.com/trusktr
on May 19, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2119052699
https://github.com/piranna
Jesús Leganés-Combarro (piranna)https://github.com/piranna
on May 19, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2119151437
https://github.com/texastoland
Texas Toland (texastoland)https://github.com/texastoland
on May 20, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2119737638
Scotty Jamison (@theScottyJam)https://github.com/theScottyJam
is shorthand forhttps://flow.org/en/docs/types/comments/#toc-comment-type-annotation
XY problemhttps://en.wikipedia.org/wiki/XY_problem
https://github.com/theScottyJam
Scotty Jamison (theScottyJam)https://github.com/theScottyJam
on May 21, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2121550111
https://github.com/theScottyJam
Scotty Jamison (theScottyJam)https://github.com/theScottyJam
on May 21, 2024https://github.com/microsoft/TypeScript/issues/48650#issuecomment-2121985027
#58601https://github.com/microsoft/TypeScript/pull/58601
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/48650
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/48650
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.