René's URL Explorer Experiment


Title: Design Meeting Notes, 4/13/2022 · Issue #48686 · microsoft/TypeScript · GitHub

Open Graph Title: Design Meeting Notes, 4/13/2022 · Issue #48686 · microsoft/TypeScript

X Title: Design Meeting Notes, 4/13/2022 · Issue #48686 · microsoft/TypeScript

Description: Resolution mode assertions for import type #48644 (notes in this section from Ryan Cavanaugh (@RyanCavanaugh) with some edits from me) Controls how resolution acts - import-style, or require-style Pushback from some community members abo...

Open Graph Description: Resolution mode assertions for import type #48644 (notes in this section from Ryan Cavanaugh (@RyanCavanaugh) with some edits from me) Controls how resolution acts - import-style, or require-style ...

X Description: Resolution mode assertions for import type #48644 (notes in this section from Ryan Cavanaugh (@RyanCavanaugh) with some edits from me) Controls how resolution acts - import-style, or require-style ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 4/13/2022","articleBody":"## Resolution mode assertions for `import type`\r\n\r\n#48644\r\n\r\n(notes in this section from @RyanCavanaugh with some edits from me)\r\n\r\n* Controls how resolution acts - `import`-style, or `require`-style\r\n* Pushback from some community members about whether this is an appropriate use of assertion syntax\r\n* Caveat: `import type` is \"our\" syntax - doesn't work elsewhere\r\n* Real import assertions are after-the-fact checks, not behavioral modifiers\r\n* Alternatives?\r\n    * Comment directives\r\n    * Dotted names like `import.require` and `import.import` (nonstarter)\r\n    * Invent our own different keywords\r\n* This might be confusing for users\r\n* Deno may care because... they have semantic comments too?\r\n* Additional configuration properties might need to appear here in the future\r\n* Would using a more clearly-TS property name in this position assuage concerns?\r\n    * Unclear, but probably no - the argument seems to center around the use of `assert` syntax.\r\n* By re-using `assert`, other tools don't need new syntactic handling\r\n* We use other JS-apparent syntax (`{ x: y }`, etc)\r\n* What happens if we add `import type` to JS?\r\n    * The assertion would also be ignored, resolution would never even occur\r\n* What alternatives were considered during implementation?\r\n    * Various comments, `as`\r\n* Sidebar: Why do real `import` assertions exist?\r\n    * Validation\r\n* The spec says you can't use assertions as a cache key, i.e. you can't use it to modify resolution, but we're using it for exactly that - seems bad\r\n* What about rewriting the name to include a custom protocol?\r\n    * Super dangerous; we can't predict what this will look like\r\n* What happens if we don't emit these kind of paths?\r\n    * You get the \"this path is non-portable\" error\r\n* We don't want multiple ways to do this\r\n* How usable is node esm without this?\r\n    * ??\r\n* Can we just wait for CJS to go away?\r\n    * ???\r\n* Other third-party tools will be mad if we add new rando syntax they have to deal with just for this.\r\n* Can we fix this with compile-time decorators?\r\n* Idea: possibly gate this syntax to nightly-only, emit an error upon use.\r\n\r\n## Stage 3 Decorator Placement\r\n\r\n* Our support for decorators originally placed decorators coming before the `export` keyword.\r\n    * ECMA-262 direction is that the syntax would be\r\n    \r\n      ```ts\r\n      export default\r\n      @someDecorator1\r\n      @someDecorator2\r\n      class Foo {\r\n\r\n      }\r\n      ```\r\n* The placement of fields on our objects is sensitive to their positions. We always expect specific fields to come before others so that we can correctly do source-maps, syntax tree printing, etc.\r\n    * So can't mix `export` and `default` into the same bag as `abstract` when they're split up by decorators preceding them.\r\n* Idea\r\n    * Split between `leadingModifiers` and `trailingModifiers`\r\n    * API needs to provide `modifiers` as `[...leadingModifiers, ...trailingModifiers]`\r\n    * Still creates a lot of breaking changes.\r\n* The changes here are cumbersome, and changes whatever API users might expect.\r\n* Would it make sense to have leading/trailing decorators instead?\r\n    * No, still need to split the modifiers.\r\n* TC39 seems pretty resistant to take any feedback from us on this. 😕\r\n    * Seems unfortunate since this affects, Prettier, ESLint, etc. too.","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2022-04-13T23:27:17Z","url":"https://github.com/microsoft/TypeScript/issues/48686"}

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:97a3cb1a-72ed-4b08-ab7e-b6d49864818f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE78A:358871:D60A5D:11B7C47:6B00F935
html-safe-nonce5d0ff8b8e3c5b8187b482b0894bb8ce5995c8128afc5c6d836f4544ef1c93bee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzhBOjM1ODg3MTpENjBBNUQ6MTFCN0M0Nzo2QjAwRjkzNSIsInZpc2l0b3JfaWQiOiIyMzI0NDkxNDIyOTc3ODY2NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf553df2bfe0e4d84b3c08218886b5c8d65f43c0214566346a13f48b045e819ba
hovercard-subject-tagissue:1203880245
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/48686/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dce1e3be8f7f51cccc7a9f78f9b43051b7bbbfe4cd295967825ae830c90b8334/microsoft/TypeScript/issues/48686
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dce1e3be8f7f51cccc7a9f78f9b43051b7bbbfe4cd295967825ae830c90b8334/microsoft/TypeScript/issues/48686
og:image:altResolution mode assertions for import type #48644 (notes in this section from Ryan Cavanaugh (@RyanCavanaugh) with some edits from me) Controls how resolution acts - import-style, or require-style ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDanielRosenwasser
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
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
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/48686#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F48686
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%2F48686
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/48686
Reloadhttps://github.com/microsoft/TypeScript/issues/48686
Reloadhttps://github.com/microsoft/TypeScript/issues/48686
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/48686
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/48686
Design Meeting Notes, 4/13/2022https://github.com/microsoft/TypeScript/issues/48686#top
Design NotesNotes from our design meetingshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Notes%22
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Apr 13, 2022https://github.com/microsoft/TypeScript/issues/48686#issue-1203880245
#48644https://github.com/microsoft/TypeScript/issues/48644
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Design NotesNotes from our design meetingshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Notes%22
on Apr 13, 2022https://github.com/microsoft/TypeScript/issues/48686#event-6430907743
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 4, 2022https://github.com/microsoft/TypeScript/issues/48686#event-6545100771
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/48686
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/48686
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.