René's URL Explorer Experiment


Title: Importing untyped JS modules · Issue #3019 · microsoft/TypeScript · GitHub

Open Graph Title: Importing untyped JS modules · Issue #3019 · microsoft/TypeScript

X Title: Importing untyped JS modules · Issue #3019 · microsoft/TypeScript

Description: I have been trying out the 1.5 beta, but I am confused about importing modules from 3rd-party JS libraries. As I understand it, TS is intended as a superset of JS so if, for example, I have a CommonJS library called foo.js, then in my ap...

Open Graph Description: I have been trying out the 1.5 beta, but I am confused about importing modules from 3rd-party JS libraries. As I understand it, TS is intended as a superset of JS so if, for example, I have a Commo...

X Description: I have been trying out the 1.5 beta, but I am confused about importing modules from 3rd-party JS libraries. As I understand it, TS is intended as a superset of JS so if, for example, I have a Commo...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Importing untyped JS modules","articleBody":"I have been trying out the 1.5 beta, but I am confused about importing modules from 3rd-party JS libraries. As I understand it, TS is intended as a superset of JS so if, for example, I have a CommonJS library called foo.js, then in my app.ts, I should be able to do:\n\n``` js\nimport foo from 'foo';\n```\n\nAnd this should be compiled (depending on my compile options) into a CommonJS require statement, which can then be consumed by Node, Browserify, etc.\n\nThis works in regular JavaScript (as compiled by Babel), but it does not work in TypeScript. I get a compiler error saying \"Cannot find external module 'foo'\".\n\nI understand that I can maybe write a .ts.d file that describes this library, but what if I don't want to do this? What if I just want to import a module and use it, as I would in regular JS?\n","author":{"url":"https://github.com/jonrimmer","@type":"Person","name":"jonrimmer"},"datePublished":"2015-05-04T11:28:59Z","url":"https://github.com/microsoft/TypeScript/issues/3019"}

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:31f13f69-5a5c-703e-1eb2-42e01121f5ec
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD320:3D38E3:A128:E6F8:6AFBB462
html-safe-nonce08bf87433e9a7d9d4446c5d33cbc277896c21541725f840629d35fb4ee4c1856
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzIwOjNEMzhFMzpBMTI4OkU2Rjg6NkFGQkI0NjIiLCJ2aXNpdG9yX2lkIjoiNTU0Njg2NTk3MDUyNDc4NTYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaceebd4c79b63c59bc0e92bb875be0f9181cd6680041fb603871ca383a4c4607ac
hovercard-subject-tagissue:72996233
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/3019/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f6043e05c0eaed5a9040da81c2e492f53bfcffb71fb6865fa87ecdd5ad041019/microsoft/TypeScript/issues/3019
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f6043e05c0eaed5a9040da81c2e492f53bfcffb71fb6865fa87ecdd5ad041019/microsoft/TypeScript/issues/3019
og:image:altI have been trying out the 1.5 beta, but I am confused about importing modules from 3rd-party JS libraries. As I understand it, TS is intended as a superset of JS so if, for example, I have a Commo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejonrimmer
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
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
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/3019#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F3019
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%2F3019
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/3019
Reloadhttps://github.com/microsoft/TypeScript/issues/3019
Reloadhttps://github.com/microsoft/TypeScript/issues/3019
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests334 (334)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/pulse
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3019
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3019
Importing untyped JS moduleshttps://github.com/microsoft/TypeScript/issues/3019#top
QuestionAn issue which isn't directly actionable in codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Question%22
https://github.com/jonrimmer
Jon Rimmer (jonrimmer)https://github.com/jonrimmer
on May 4, 2015https://github.com/microsoft/TypeScript/issues/3019#issue-72996233
https://github.com/igl
Rick (igl)https://github.com/igl
on May 4, 2015https://github.com/microsoft/TypeScript/issues/3019#issuecomment-98806458
https://github.com/tinganho
Tingan Ho (tinganho)https://github.com/tinganho
on May 4, 2015https://github.com/microsoft/TypeScript/issues/3019#issuecomment-98808941
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on May 4, 2015https://github.com/microsoft/TypeScript/issues/3019#issuecomment-98821868
Tingan Ho (@tinganho)https://github.com/tinganho
http://definitelytyped.org/http://definitelytyped.org/
this wiki pagehttps://github.com/Microsoft/TypeScript/wiki/Writing-Definition-Files
closure-tshttps://github.com/teppeis/closure-ts
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
QuestionAn issue which isn't directly actionable in codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Question%22
on May 4, 2015https://github.com/microsoft/TypeScript/issues/3019#event-296559586
https://github.com/MicahZoltu
Micah Zoltu (MicahZoltu)https://github.com/MicahZoltu
on May 4, 2015https://github.com/microsoft/TypeScript/issues/3019#issuecomment-98851781
Jon Rimmer (@jonrimmer)https://github.com/jonrimmer
#2709 (comment)https://github.com/microsoft/TypeScript/issues/2709#issuecomment-91968950
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on May 4, 2015https://github.com/microsoft/TypeScript/issues/3019#issuecomment-98855504
Zoltu (@Zoltu)https://github.com/Zoltu
#2709https://github.com/microsoft/TypeScript/issues/2709
Dan Quirk (danquirk)https://github.com/danquirk
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 4, 2015https://github.com/microsoft/TypeScript/issues/3019#event-296676133
https://github.com/zakhenry
Zak Henry (zakhenry)https://github.com/zakhenry
on Jun 5, 2016https://github.com/microsoft/TypeScript/issues/3019#issuecomment-223826425
#2709https://github.com/microsoft/TypeScript/issues/2709
#6615https://github.com/microsoft/TypeScript/issues/6615
https://github.com/alcfeoh
Alain Chautard (alcfeoh)https://github.com/alcfeoh
on Dec 14, 2016https://github.com/microsoft/TypeScript/issues/3019#issuecomment-267157211
https://www.stevefenton.co.uk/2013/01/complex-typescript-definitions-made-easy/https://www.stevefenton.co.uk/2013/01/complex-typescript-definitions-made-easy/
https://github.com/MicahZoltu
Micah Zoltu (MicahZoltu)https://github.com/MicahZoltu
on Dec 14, 2016https://github.com/microsoft/TypeScript/issues/3019#issuecomment-267160352
https://github.com/sjatkins
Samantha Atkins (sjatkins)https://github.com/sjatkins
on Feb 27, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-282608148
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Feb 27, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-282827036
https://github.com/alcfeoh
Alain Chautard (alcfeoh)https://github.com/alcfeoh
on Feb 27, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-282828202
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Feb 27, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-282840122
https://github.com/sjatkins
Samantha Atkins (sjatkins)https://github.com/sjatkins
on Feb 28, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-282913031
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Feb 28, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-283120680
https://github.com/alcfeoh
Alain Chautard (alcfeoh)https://github.com/alcfeoh
on Feb 28, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-283126121
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
epub-jshttps://github.com/futurepress/epub.js/
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Feb 28, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-283132022
https://github.com/sisiea
Xinghai Zhang (sisiea)https://github.com/sisiea
on Mar 27, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-289417684
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Mar 27, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-289522382
https://github.com/balajikris
Balaji Krishnan (balajikris)https://github.com/balajikris
on Apr 4, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-291661156
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Apr 5, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-291695924
https://github.com/balajikris
Balaji Krishnan (balajikris)https://github.com/balajikris
on Apr 5, 2017https://github.com/microsoft/TypeScript/issues/3019#issuecomment-291940070
#15031https://github.com/microsoft/TypeScript/issues/15031
https://github.com/PhotoAtomic
PhotoAtomichttps://github.com/PhotoAtomic
on Jan 5, 2018https://github.com/microsoft/TypeScript/issues/3019#issuecomment-355516799
ts-ignorehttps://github.com/ts-ignore
ts-ignorehttps://github.com/ts-ignore
ts-ignorehttps://github.com/ts-ignore
https://github.com/s50600822
Phan Văn Hoà - 潘文和 - 반문화 (s50600822)https://github.com/s50600822
on Feb 5, 2018https://github.com/microsoft/TypeScript/issues/3019#issuecomment-363006558
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Feb 5, 2018https://github.com/microsoft/TypeScript/issues/3019#issuecomment-363179994
https://github.com/ackvf
Qwerty (Vítězslav Ackermann Ferko) (ackvf)https://github.com/ackvf
on Apr 27, 2018https://github.com/microsoft/TypeScript/issues/3019#issuecomment-384897527
microsofthttps://github.com/microsoft
on Jul 31, 2018https://github.com/microsoft/TypeScript/issues/3019#event-1763300340
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/3019
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/3019
QuestionAn issue which isn't directly actionable in codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Question%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.