René's URL Explorer Experiment


Title: Implementing interface puts relative imports · Issue #34995 · microsoft/TypeScript · GitHub

Open Graph Title: Implementing interface puts relative imports · Issue #34995 · microsoft/TypeScript

X Title: Implementing interface puts relative imports · Issue #34995 · microsoft/TypeScript

Description: TypeScript Version: 3.7.2 Code git clone https://github.com/microsoft/vscode.git yarn open VSCode on anythingQuickAccess.ts type in the top: class FooHandler implements IEditorGroup { } fix the error by letting it implement the interface...

Open Graph Description: TypeScript Version: 3.7.2 Code git clone https://github.com/microsoft/vscode.git yarn open VSCode on anythingQuickAccess.ts type in the top: class FooHandler implements IEditorGroup { } fix the err...

X Description: TypeScript Version: 3.7.2 Code git clone https://github.com/microsoft/vscode.git yarn open VSCode on anythingQuickAccess.ts type in the top: class FooHandler implements IEditorGroup { } fix the err...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implementing interface puts relative imports","articleBody":"**TypeScript Version:**  `3.7.2`\r\n\r\n**Code**\r\n\r\n* `git clone https://github.com/microsoft/vscode.git`\r\n* `yarn`\r\n* open VSCode on `anythingQuickAccess.ts`\r\n* type in the top:\r\n\r\n```ts\r\nclass FooHandler implements IEditorGroup {\r\n\r\n}\r\n```\r\n\r\n* fix the error by letting it implement the interface\r\n\r\n**Expected behavior:**\r\nCode that gets generated does not use inline imports.\r\n\r\n**Actual behavior:**\r\nCode that gets generated adds inline imports:\r\n\r\n```ts\r\nclass FooHandler implements IEditorGroup {\r\n\tonDidGroupChange: Event\u003cIGroupChangeEvent>;\r\n\tonWillDispose: Event\u003cvoid>;\r\n\tid: number;\r\n\tindex: number;\r\n\tlabel: string;\r\n\tariaLabel: string;\r\n\tactiveEditorPane: import(\"../../../common/editor\").IVisibleEditorPane | undefined;\r\n\tactiveEditor: IEditorInput | null;\r\n\tpreviewEditor: IEditorInput | null;\r\n\tcount: number;\r\n\tstickyCount: number;\r\n\teditors: readonly IEditorInput[];\r\n\tgetEditors(order: EditorsOrder, options?: { excludeSticky?: boolean | undefined; } | undefined): readonly IEditorInput[] {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tgetEditorByIndex(index: number): IEditorInput | undefined {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tgetIndexOfEditor(editor: IEditorInput): number {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\topenEditor(editor: IEditorInput, options?: import(\"../../../../platform/editor/common/editor\").IEditorOptions | ITextEditorOptions | undefined): Promise\u003cimport(\"../../../common/editor\").IEditorPane | null> {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\topenEditors(editors: import(\"../../../common/editor\").IEditorInputWithOptions[]): Promise\u003cimport(\"../../../common/editor\").IEditorPane | null> {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tisOpened(editor: IEditorInput): boolean {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tisPinned(editor: IEditorInput): boolean {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tisSticky(editorOrIndex: number | IEditorInput): boolean {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tisActive(editor: IEditorInput): boolean {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tmoveEditor(editor: IEditorInput, target: IEditorGroup, options?: import(\"../../../services/editor/common/editorGroupsService\").IMoveEditorOptions | undefined): void {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tcopyEditor(editor: IEditorInput, target: IEditorGroup, options?: import(\"../../../services/editor/common/editorGroupsService\").ICopyEditorOptions | undefined): void {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tcloseEditor(editor?: IEditorInput | undefined, options?: import(\"../../../services/editor/common/editorGroupsService\").ICloseEditorOptions | undefined): Promise\u003cvoid> {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tcloseEditors(editors: IEditorInput[] | import(\"../../../services/editor/common/editorGroupsService\").ICloseEditorsFilter, options?: import(\"../../../services/editor/common/editorGroupsService\").ICloseEditorOptions | undefined): Promise\u003cvoid> {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tcloseAllEditors(options?: import(\"../../../services/editor/common/editorGroupsService\").ICloseAllEditorsOptions | undefined): Promise\u003cvoid> {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\treplaceEditors(editors: import(\"../../../services/editor/common/editorGroupsService\").IEditorReplacement[]): Promise\u003cvoid> {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tpinEditor(editor?: IEditorInput | undefined): void {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tstickEditor(editor?: IEditorInput | undefined): void {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tunstickEditor(editor?: IEditorInput | undefined): void {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tfocus(): void {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\tinvokeWithinContext\u003cT>(fn: (accessor: import(\"../../../../platform/instantiation/common/instantiation\").ServicesAccessor) => T): T {\r\n\t\tthrow new Error('Method not implemented.');\r\n\t}\r\n\r\n}\r\n```\r\n","author":{"url":"https://github.com/bpasero","@type":"Person","name":"bpasero"},"datePublished":"2019-11-08T15:22:35Z","url":"https://github.com/microsoft/TypeScript/issues/34995"}

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:a213940c-af15-6d12-26c8-763302c2a4a1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBAFC:DB09F:C2E93A:F9CC33:6B01003E
html-safe-nonce661f9483c99bcaa02c038823d0254e75c35a65461306d78c1039d2b370932569
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUZDOkRCMDlGOkMyRTkzQTpGOUNDMzM6NkIwMTAwM0UiLCJ2aXNpdG9yX2lkIjoiMTU4MjcyODc2NjQzMjU0Mjc4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac702887d154e2267b8ab2ecc5b79f101366b21583eec02f4c5bc19095d3282641
hovercard-subject-tagissue:520073735
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/34995/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5cd67081546337f132ab7b27afc5d7fb81717326eafb9ab26dab9efd2212947f/microsoft/TypeScript/issues/34995
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5cd67081546337f132ab7b27afc5d7fb81717326eafb9ab26dab9efd2212947f/microsoft/TypeScript/issues/34995
og:image:altTypeScript Version: 3.7.2 Code git clone https://github.com/microsoft/vscode.git yarn open VSCode on anythingQuickAccess.ts type in the top: class FooHandler implements IEditorGroup { } fix the err...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebpasero
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/34995#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F34995
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%2F34995
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/34995
Reloadhttps://github.com/microsoft/TypeScript/issues/34995
Reloadhttps://github.com/microsoft/TypeScript/issues/34995
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/34995
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/34995
#39130https://github.com/microsoft/TypeScript/pull/39130
#36615https://github.com/microsoft/TypeScript/pull/36615
Implementing interface puts relative importshttps://github.com/microsoft/TypeScript/issues/34995#top
#39130https://github.com/microsoft/TypeScript/pull/39130
#36615https://github.com/microsoft/TypeScript/pull/36615
https://github.com/andrewbranch
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
VS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22VS%20Code%20Priority%22
TypeScript 4.0.1https://github.com/microsoft/TypeScript/milestone/123
https://github.com/bpasero
Benjamin Pasero (bpasero)https://github.com/bpasero
on Nov 8, 2019https://github.com/microsoft/TypeScript/issues/34995#issue-520073735
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Experience EnhancementNoncontroversial enhancementshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experience%20Enhancement%22
on Nov 8, 2019https://github.com/microsoft/TypeScript/issues/34995#event-2783505145
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Nov 8, 2019https://github.com/microsoft/TypeScript/issues/34995#event-2783505278
Andrew Branch (andrewbranch)https://github.com/andrewbranch
TypeScript 3.8.0https://github.com/microsoft/TypeScript/milestone/102
on Nov 8, 2019https://github.com/microsoft/TypeScript/issues/34995#event-2783506422
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Nov 8, 2019https://github.com/microsoft/TypeScript/issues/34995#issuecomment-551873282
#32910https://github.com/microsoft/TypeScript/issues/32910
#33915https://github.com/microsoft/TypeScript/pull/33915
https://github.com/mjbvz
Matt Bierner (mjbvz)https://github.com/mjbvz
on Nov 13, 2019https://github.com/microsoft/TypeScript/issues/34995#issuecomment-553262962
#35078https://github.com/microsoft/TypeScript/issues/35078
Benjamin Pasero (@bpasero)https://github.com/bpasero
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.8.0https://github.com/microsoft/TypeScript/milestone/102
TypeScript 3.8.1https://github.com/microsoft/TypeScript/milestone/107
on Jan 7, 2020https://github.com/microsoft/TypeScript/issues/34995#event-2929450149
Andrew Branch (andrewbranch)https://github.com/andrewbranch
TypeScript 3.8.1https://github.com/microsoft/TypeScript/milestone/107
TypeScript 3.9.0https://github.com/microsoft/TypeScript/milestone/109
on Feb 4, 2020https://github.com/microsoft/TypeScript/issues/34995#event-3008068512
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Feb 5, 2020https://github.com/microsoft/TypeScript/issues/34995#event-3011053017
Andrew Branch (andrewbranch)https://github.com/andrewbranch
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#36615https://github.com/microsoft/TypeScript/pull/36615
on Feb 11, 2020https://github.com/microsoft/TypeScript/issues/34995#event-3024946810
https://github.com/bpasero
Benjamin Pasero (bpasero)https://github.com/bpasero
on May 9, 2020https://github.com/microsoft/TypeScript/issues/34995#issuecomment-626114825
Andrew Branch (@andrewbranch)https://github.com/andrewbranch
Matt Bierner (@mjbvz)https://github.com/mjbvz
https://user-images.githubusercontent.com/900690/81466051-c6a1bb80-91ce-11ea-9460-7b11016336de.png
https://github.com/mjbvz
Matt Bierner (mjbvz)https://github.com/mjbvz
on May 11, 2020https://github.com/microsoft/TypeScript/issues/34995#issuecomment-626988088
Benjamin Pasero (@bpasero)https://github.com/bpasero
Matt Bierner (mjbvz)https://github.com/mjbvz
on May 11, 2020https://github.com/microsoft/TypeScript/issues/34995#event-3324946647
https://github.com/bpasero
Benjamin Pasero (bpasero)https://github.com/bpasero
on May 12, 2020https://github.com/microsoft/TypeScript/issues/34995#issuecomment-627129111
Matt Bierner (@mjbvz)https://github.com/mjbvz
Andrew Branch (@andrewbranch)https://github.com/andrewbranch
#34995 (comment)https://github.com/microsoft/TypeScript/issues/34995#issue-520073735
Andrew Branch (andrewbranch)https://github.com/andrewbranch
TypeScript 3.9.0https://github.com/microsoft/TypeScript/milestone/109
TypeScript 4.0https://github.com/microsoft/TypeScript/milestone/114
on May 12, 2020https://github.com/microsoft/TypeScript/issues/34995#event-3328542503
Andrew Branch (andrewbranch)https://github.com/andrewbranch
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
Experience EnhancementNoncontroversial enhancementshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experience%20Enhancement%22
on May 12, 2020https://github.com/microsoft/TypeScript/issues/34995#event-3328543010
Matt Bierner (mjbvz)https://github.com/mjbvz
VS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22VS%20Code%20Priority%22
on May 27, 2020https://github.com/microsoft/TypeScript/issues/34995#event-3376735110
Andrew Branch (andrewbranch)https://github.com/andrewbranch
TypeScript 4.0https://github.com/microsoft/TypeScript/milestone/114
Typescript 4.0.1https://github.com/microsoft/TypeScript/milestone/123
on Jun 23, 2020https://github.com/microsoft/TypeScript/issues/34995#event-3474234814
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Jun 23, 2020https://github.com/microsoft/TypeScript/issues/34995#event-3474237738
Andrew Branch (andrewbranch)https://github.com/andrewbranch
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#39130https://github.com/microsoft/TypeScript/pull/39130
on Jul 7, 2020https://github.com/microsoft/TypeScript/issues/34995#event-3522104260
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/34995#event-20416819475
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/34995
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/34995
Andrew Branch (andrewbranch)https://github.com/andrewbranch
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
VS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22VS%20Code%20Priority%22
TypeScript 4.0.1https://github.com/microsoft/TypeScript/milestone/123
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.