René's URL Explorer Experiment


Title: Design Meeting Notes, 6/11/2024 · Issue #58918 · microsoft/TypeScript · GitHub

Open Graph Title: Design Meeting Notes, 6/11/2024 · Issue #58918 · microsoft/TypeScript

X Title: Design Meeting Notes, 6/11/2024 · Issue #58918 · microsoft/TypeScript

Description: Syntactic Form for Preserving Computed Property Names #58829 When you have isolatedDeclarations, you can't use computed property names in object literals and classes. They transform into different forms depending on the type (symbol, str...

Open Graph Description: Syntactic Form for Preserving Computed Property Names #58829 When you have isolatedDeclarations, you can't use computed property names in object literals and classes. They transform into different ...

X Description: Syntactic Form for Preserving Computed Property Names #58829 When you have isolatedDeclarations, you can't use computed property names in object literals and classes. They transform into differ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 6/11/2024","articleBody":"# Syntactic Form for Preserving Computed Property Names\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/58829\r\n\r\n* When you have `isolatedDeclarations`, you can't use computed property names in object literals and classes.\r\n    * They transform into different forms depending on the type (symbol, string types, etc.).\r\n* We basically said they're not supported under `isolatedDeclarations`.\r\n* This proposal is to support computed property names under `isolatedDeclarations` by introducing a new syntactic form.\r\n\r\n  ```ts\r\n  export const obj = {\r\n    [someValue satisfies keyof]: 123,\r\n  };\r\n  ```\r\n* Idea is this should be transformed into the following declaration file:\r\n\r\n  ```ts\r\n  export declare const obj: {\r\n      [someValue]: number;\r\n  };\r\n  ```\r\n* Under this, `someValue` must be a singleton/unit type.\r\n* What is the specific use-case here?\r\n    * Need to preserve the exact syntax input by the user - codebases with computed properties can't use `isolatedDeclarations`.\r\n* Do we really need new syntax for ID?\r\n* Why can't we just error in cases when an \"optimistic inference\" would not succeed?\r\n    * We didn't feel okay doing optimistic inference in general.\r\n* Why can't we just emit the expression as-is always?\r\n    * A computed property resolves differently depending on ambient vs. non-ambient contexts.\r\n    * Also, we'd need to now preserve the declaration of more non-exported values.\r\n        * We do that for `typeof` anyhow.\r\n    * In general, it's a breaking change.\r\n\r\n# Only Look up `type` from `package.json` when in `node_modules` (and in `node16`)\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/58825\r\n\r\n* Got feedback on a feature that we added in 5.5 where we look up `package.json`.\r\n* Two issues reported.\r\n    * First: dual-publish. CJS and ESM.\r\n    * Second: script file that really wasn't meant to be driven by a `package.json` farther up the spine.\r\n    * Third: doing all this work causes a lot of file-watching.\r\n* A few options:\r\n    * Revert all of this.\r\n    * Only expand the behavior to modules inside of `node_modules`.\r\n    * Roll with it.\r\n* How does it work with monorepos with symlinked dependencies in `node_modules`?\r\n    * Seems like it plays \"correctly\" - we always go through `realpath` and figure out where the actual file is.\r\n\r\n# Analyze Control Flow Effects of Callbacks\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/58729\r\n\r\n* Considered a strictness flag - but feels like maybe this should be the default.\r\n* Issues around the `Deferred` helper conflicting with libraries using this type.\r\n    * Using a type helper probably communicates the wrong thing as ewll.\r\n* What's the work-around for when the caller doesn't mark something as `deferred`?\r\n    * Define a helper function called `deferred` that just takes and returns the function.\r\n\r\n      ```ts\r\n      function deferred\u003cT extends (...args: any[]) =\u003e any\u003e(deferred fn: T): T {\r\n          return fn;\r\n      }\r\n      ```\r\n* All the examples of new breaks running over GitHub are kind of expected - places where `deferred` will need to be added.\r\n    * But which of these are wins?\r\n    * Maybe the `tinacms` examples.\r\n    * And Pyright has a missing non-null assertion.\r\n* What happens if you mark a parameter as `deferred` and it's not deferrable?\r\n    * We could error on that.\r\n* Some have asked about why we only do this for function expressions and not declarations (or constants initialized to function expressions).\r\n    * Easier to explain, visually shows up.\r\n    * And it would be a *whole* lot more analysis.\r\n    * And then issues around circularities due to resolving each name.\r\n* Does `deferred` affect assignability?\r\n    * Right now we don't do anything special.\r\n    * Currently it's an intrinsic type that doesn't affect assignability.\r\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2024-06-18T23:13:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/58918/TypeScript/issues/58918"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:97d50246-c341-281b-9bf9-6eb081880823
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9A3E:2E960D:2BBF651:3AFB9AB:6A5DAD5D
html-safe-nonce6a7e636234df0689013446d8c9932e7a1ded55e96be01d9e0ab7c6575144f4af
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTNFOjJFOTYwRDoyQkJGNjUxOjNBRkI5QUI6NkE1REFENUQiLCJ2aXNpdG9yX2lkIjoiMzA2NzE3MzY4MTMwMDg3NjYzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbdf0ed046f872f59115e95cb1b36cb2a4a96dd0073a9206df327eaba56ff69ab
hovercard-subject-tagissue:2360893787
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/58918/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b6f89283bbc55c8bbbcf641f7e8a0b2474b0c47e7f00c7bf0cb23b37a479ee37/microsoft/TypeScript/issues/58918
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b6f89283bbc55c8bbbcf641f7e8a0b2474b0c47e7f00c7bf0cb23b37a479ee37/microsoft/TypeScript/issues/58918
og:image:altSyntactic Form for Preserving Computed Property Names #58829 When you have isolatedDeclarations, you can't use computed property names in object literals and classes. They transform into different ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDanielRosenwasser
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/58918#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F58918
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F58918
Sign up https://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/58918
Reloadhttps://github.com/microsoft/TypeScript/issues/58918
Reloadhttps://github.com/microsoft/TypeScript/issues/58918
Please reload this pagehttps://github.com/microsoft/TypeScript/issues/58918
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.6k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Star 110k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 31 https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality 0 https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Code https://github.com/microsoft/TypeScript
Issues https://github.com/microsoft/TypeScript/issues
Pull requests https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Design Meeting Notes, 6/11/2024https://github.com/microsoft/TypeScript/issues/58918#top
Design NotesNotes from our design meetingshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Notes%22
https://github.com/DanielRosenwasser
DanielRosenwasserhttps://github.com/DanielRosenwasser
on Jun 18, 2024https://github.com/microsoft/TypeScript/issues/58918#issue-2360893787
#58829https://github.com/microsoft/TypeScript/pull/58829
#58825https://github.com/microsoft/TypeScript/pull/58825
#58729https://github.com/microsoft/TypeScript/pull/58729
Design NotesNotes from our design meetingshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Notes%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.