René's URL Explorer Experiment


Title: Augmentet methods not available in Visual Studio intellisense unless something is exported from the augmentation module · Issue #7415 · microsoft/TypeScript · GitHub

Open Graph Title: Augmentet methods not available in Visual Studio intellisense unless something is exported from the augmentation module · Issue #7415 · microsoft/TypeScript

X Title: Augmentet methods not available in Visual Studio intellisense unless something is exported from the augmentation module · Issue #7415 · microsoft/TypeScript

Description: I have a class called Webpack, which I augment to add a new method addLess like so: // addLess.ts import { Webpack } from '../webpack'; declare module '../webpack' { interface Webpack { addLess(): Webpack; } } const lessConfiguration = {...

Open Graph Description: I have a class called Webpack, which I augment to add a new method addLess like so: // addLess.ts import { Webpack } from '../webpack'; declare module '../webpack' { interface Webpack { addLess(): ...

X Description: I have a class called Webpack, which I augment to add a new method addLess like so: // addLess.ts import { Webpack } from '../webpack'; declare module '../webpack' { interface Webpa...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Augmentet methods not available in Visual Studio intellisense unless something is exported from the augmentation module","articleBody":"I have a class called Webpack, which I augment to add a new method `addLess` like so:\n\n``` typescript\n// addLess.ts\nimport { Webpack } from '../webpack';\n\ndeclare module '../webpack' {\n    interface Webpack {\n        addLess(): Webpack;\n    }\n}\n\nconst lessConfiguration = {\n    module: {\n        loaders: [\n            { test: /\\.less$/, loader: \"style!css!less\" }\n        ]\n    }\n};\n\nclass Implementation extends Webpack {\n    addLess(): Webpack {\n        return this.mergeModule('less', lessConfiguration);\n    }\n}\n\nWebpack.prototype.addLess = Implementation.prototype.addLess;\n```\n\nThis works great in the current typescript project, but if I compile (with declarations), and try to use the compiled project in another project, the new method is not shown in intellisense in Visual Studio, and it is shown as an error if I try to use it anyway.\nHowever, if I make sure something is exported from the module above it works as expected. For example, I can work around the issue by exporting the class `Implementation` like so:\n\n``` typescript\n// addLess.ts\nimport { Webpack } from '../webpack';\n\ndeclare module '../webpack' {\n    interface Webpack {\n        addLess(): Webpack;\n    }\n}\n\nconst lessConfiguration = {\n    module: {\n        loaders: [\n            { test: /\\.less$/, loader: \"style!css!less\" }\n        ]\n    }\n};\n\nexport class Implementation extends Webpack {\n    addLess(): Webpack {\n        return this.mergeModule('less', lessConfiguration);\n    }\n}\n\nWebpack.prototype.addLess = Implementation.prototype.addLess;\n```\n\nHowever, this means that I am exporting something, that should be private to the module.\n\nThis issue is only in Visual Studio. When compiling with `gulp-typescript` using typescript 1.8.2, 1.8.5, 1.8.6 or 1.8.7 I get no errors - with or without the extra export.\n\nI am using Visual Studio 2015 update 1 with the extension for Typescript 1.8.4.\n","author":{"url":"https://github.com/MortenHoustonLudvigsen","@type":"Person","name":"MortenHoustonLudvigsen"},"datePublished":"2016-03-07T13:20:21Z","url":"https://github.com/microsoft/TypeScript/issues/7415"}

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:b5b0c217-b0a7-1506-8537-b9dc433cd67c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAB82:1F2F:5E0610:7D4B8D:6B018774
html-safe-noncec8592cd76c500dc211aeb02702c5f844081c37378e364963495a6c2575b9b73a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjgyOjFGMkY6NUUwNjEwOjdENEI4RDo2QjAxODc3NCIsInZpc2l0b3JfaWQiOiI4NTIzMTM5NzQ3NzM5MTc0NzcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac53481dd874ac6630d8a8d3fe7ff24ef969330aaf53833387572366a4ba87761f
hovercard-subject-tagissue:138976828
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/7415/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ee778465d7b3dd6a2cb01bbe7f0d7dede178db6f668a6bb54526143a077ce679/microsoft/TypeScript/issues/7415
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ee778465d7b3dd6a2cb01bbe7f0d7dede178db6f668a6bb54526143a077ce679/microsoft/TypeScript/issues/7415
og:image:altI have a class called Webpack, which I augment to add a new method addLess like so: // addLess.ts import { Webpack } from '../webpack'; declare module '../webpack' { interface Webpack { addLess(): ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMortenHoustonLudvigsen
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/7415#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F7415
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%2F7415
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/7415
Reloadhttps://github.com/microsoft/TypeScript/issues/7415
Reloadhttps://github.com/microsoft/TypeScript/issues/7415
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/7415
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7415
#7507https://github.com/microsoft/TypeScript/pull/7507
Augmentet methods not available in Visual Studio intellisense unless something is exported from the augmentation modulehttps://github.com/microsoft/TypeScript/issues/7415#top
#7507https://github.com/microsoft/TypeScript/pull/7507
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.0https://github.com/microsoft/TypeScript/milestone/1
https://github.com/MortenHoustonLudvigsen
Morten Houston Ludvigsen (MortenHoustonLudvigsen)https://github.com/MortenHoustonLudvigsen
on Mar 7, 2016https://github.com/microsoft/TypeScript/issues/7415#issue-138976828
https://github.com/vladima
Vladimir Matveev (vladima)https://github.com/vladima
on Mar 7, 2016https://github.com/microsoft/TypeScript/issues/7415#issuecomment-193305651
https://github.com/MortenHoustonLudvigsen
Morten Houston Ludvigsen (MortenHoustonLudvigsen)https://github.com/MortenHoustonLudvigsen
on Mar 7, 2016https://github.com/microsoft/TypeScript/issues/7415#issuecomment-193345756
https://github.com/vladima
Vladimir Matveev (vladima)https://github.com/vladima
on Mar 7, 2016https://github.com/microsoft/TypeScript/issues/7415#issuecomment-193360596
https://github.com/MortenHoustonLudvigsen
Morten Houston Ludvigsen (MortenHoustonLudvigsen)https://github.com/MortenHoustonLudvigsen
on Mar 7, 2016https://github.com/microsoft/TypeScript/issues/7415#issuecomment-193476448
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Vladimir Matveev (vladima)https://github.com/vladima
on Mar 7, 2016https://github.com/microsoft/TypeScript/issues/7415#event-580929007
https://github.com/david-driscoll
David Driscoll (david-driscoll)https://github.com/david-driscoll
on Mar 13, 2016https://github.com/microsoft/TypeScript/issues/7415#issuecomment-196055347
https://cloud.githubusercontent.com/assets/1269157/13731427/b25a2f32-e93e-11e5-80f9-094fbd87f4ac.png
https://github.com/johnpapa/angular2-gohttps://github.com/johnpapa/angular2-go
Asap2.Web.ziphttps://files.zenhub.io/56e5d7f37fb5c739428e954e
ZenHub.iohttp://www.zenhub.io
https://github.com/vladima
Vladimir Matveev (vladima)https://github.com/vladima
on Mar 13, 2016https://github.com/microsoft/TypeScript/issues/7415#issuecomment-196073819
Vladimir Matveev (vladima)https://github.com/vladima
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Mar 13, 2016https://github.com/microsoft/TypeScript/issues/7415#event-588021226
https://github.com/david-driscoll
David Driscoll (david-driscoll)https://github.com/david-driscoll
on Mar 13, 2016https://github.com/microsoft/TypeScript/issues/7415#issuecomment-196074787
https://github.com/vladima
Vladimir Matveev (vladima)https://github.com/vladima
on Mar 14, 2016https://github.com/microsoft/TypeScript/issues/7415#issuecomment-196088140
Vladimir Matveev (vladima)https://github.com/vladima
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#7507https://github.com/microsoft/TypeScript/pull/7507
on Mar 14, 2016https://github.com/microsoft/TypeScript/issues/7415#event-589367938
Vladimir Matveev (vladima)https://github.com/vladima
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Mar 14, 2016https://github.com/microsoft/TypeScript/issues/7415#event-589368169
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.0https://github.com/microsoft/TypeScript/milestone/1
on Mar 14, 2016https://github.com/microsoft/TypeScript/issues/7415#event-589368859
https://github.com/david-driscoll
David Driscoll (david-driscoll)https://github.com/david-driscoll
on Apr 10, 2016https://github.com/microsoft/TypeScript/issues/7415#issuecomment-208069073
Vladimir Matveev (@vladima)https://github.com/vladima
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Apr 25, 2016https://github.com/microsoft/TypeScript/issues/7415#issuecomment-214529307
#8149https://github.com/microsoft/TypeScript/pull/8149
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/7415#event-1689642074
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Vladimir Matveev (vladima)https://github.com/vladima
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/7415#event-1689642078
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/7415
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7415
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.0https://github.com/microsoft/TypeScript/milestone/1
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.