Title: Dont require declaration files after compile · Issue #9456 · microsoft/TypeScript · GitHub
Open Graph Title: Dont require declaration files after compile · Issue #9456 · microsoft/TypeScript
X Title: Dont require declaration files after compile · Issue #9456 · microsoft/TypeScript
Description: I use import instead of Open Graph Description: I use import instead of X Description: I use import instead of <reference .. to import my d.ts files. But after I'd compiled this: import 'tests/interfaces/mocha.d.ts'; I've got: "use strict"; require('t...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/9456
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dont require declaration files after compile","articleBody":"I use `import` instead of `\u003creference ..` to import my `d.ts` files. But after I'd compiled this:\n\n``` ts\nimport 'tests/interfaces/mocha.d.ts';\n```\n\nI've got:\n\n``` js\n\"use strict\";\nrequire('tests/interfaces/mocha.d.ts');\n```\n\nMy config file:\n\n``` json\n{\n \"compilerOptions\": {\n \"emitDecoratorMetadata\": true,\n \"experimentalDecorators\": true,\n \"module\": \"commonjs\",\n \"moduleResolution\": \"classic\",\n \"noImplicitAny\": false,\n \"outDir\": \"dist\",\n \"rootDir\": \".\",\n \"sourceMap\": true,\n \"target\": \"es5\"\n }\n}\n```\n\nCan i change this behaviour by config?\n","author":{"url":"https://github.com/lasekio","@type":"Person","name":"lasekio"},"datePublished":"2016-06-30T22:09:18Z","url":"https://github.com/microsoft/TypeScript/issues/9456"}
react-profiling 0 react-import-map react,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-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:4880c3e3-4b69-d25e-f3d0-c92daef7d771 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id C076:24E74B:6B67E8:940C7D:6B04A741 html-safe-nonce 276e1192df40e9f0d049cae6e2c6631169b6b16d701013da06978cb099a9db0f visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDc2OjI0RTc0Qjo2QjY3RTg6OTQwQzdEOjZCMDRBNzQxIiwidmlzaXRvcl9pZCI6IjIyOTExNjk0NjE0MDA4MDcyMzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 3271fd389f78ef44b2e1ccf19c253b795654af4d012038d358133840d2a84507 hovercard-subject-tag issue:163277894 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/9456/issue_layout twitter:image https://opengraph.githubassets.com/7076f315f815e840f60e81ccc3d049d53656645430dbe6fa3e79f505935f0486/microsoft/TypeScript/issues/9456 twitter:card summary_large_image og:image https://opengraph.githubassets.com/7076f315f815e840f60e81ccc3d049d53656645430dbe6fa3e79f505935f0486/microsoft/TypeScript/issues/9456 og:image:alt I use import instead of og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username lasekio hostname github.com expected-hostname github.com None 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b turbo-cache-control no-preview go-import github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git octolytics-dimension-user_id 6154722 octolytics-dimension-user_login microsoft octolytics-dimension-repository_id 20929025 octolytics-dimension-repository_nwo microsoft/TypeScript octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 20929025 octolytics-dimension-repository_network_root_nwo microsoft/TypeScript turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 557cfbac6cdb532730c95c90f2cefdc0c4128029 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
Response headers:
Server github.com Content-Type text/html; charset=utf-8 Cache-Control max-age=0, private, must-revalidate
URLs of crawlers that visited me.