Title: Assert emitting declarations for a global exported using an export specifier · Issue #3640 · microsoft/TypeScript · GitHub
Open Graph Title: Assert emitting declarations for a global exported using an export specifier · Issue #3640 · microsoft/TypeScript
X Title: Assert emitting declarations for a global exported using an export specifier · Issue #3640 · microsoft/TypeScript
Description: Reported by Martin Probst (@mprobst) in #3514 mimial repro: a.d.ts: declare class X {} b.ts: ///
Open Graph Description: Reported by Martin Probst (@mprobst) in #3514 mimial repro: a.d.ts: declare class X {} b.ts: ///
X Description: Reported by Martin Probst (@mprobst) in #3514 mimial repro: a.d.ts: declare class X {} b.ts: /// <reference path="a.d.ts"/> export {X}; export function f () { var x: X; return x; } ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/3640
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assert emitting declarations for a global exported using an export specifier","articleBody":"Reported by @mprobst in #3514\n\nmimial repro:\n\n`a.d.ts`:\n\n``` ts\ndeclare class X {}\n```\n\n`b.ts`:\n\n```\n/// \u003creference path=\"a.d.ts\"/>\nexport {X};\nexport function f () {\n var x: X;\n return x;\n}\n```\n\n> tsc --d b.ts\n\nDebug Failure. False expression: isDeclarationVisible unknown: SyntaxKind: 218\n at Object.assert (/Users/martinprobst/src/angular/node_modules/typescript/bin/typescript.js:1418:23)\n at Object.fail (/Users/martinprobst/src/angular/node_modules/typescript/bin/typescript.js:1423:19)\n at determineIfDeclarationIsVisible (/Users/martinprobst/src/angular/node_modules/typescript/bin/typescript.js:12614:34)\n at isDeclarationVisible (/Users/martinprobst/src/angular/node_modules/typescript/bin/typescript.js:12620:41)\n at getIsDeclarationVisible (/Users/martinprobst/src/angular/node_modules/typescript/bin/typescript.js:11969:22)\n at /Users/martinprobst/src/angular/node_modules/typescript/bin/typescript.js:11964:82\n at Object.forEach (/Users/martinprobst/src/angular/node_modules/typescript/bin/typescript.js:748:30)\n at hasVisibleDeclarations (/Users/martinprobst/src/angular/node_modules/typescript/bin/typescript.js:11964:20)\n at Object.isSymbolAccessible (/Users/martinprobst/src/angular/node_modules/typescript/bin/typescript.js:11904:57)\n at Object.trackSymbol (/Users/martinprobst/src/angular/node_modules/typescript/bin/typescript.js:23053:53)\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2015-06-26T00:43:16Z","url":"https://github.com/microsoft/TypeScript/issues/3640"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:a463f8fe-d9d7-b876-78a8-efec87bfde80 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9918:1A0E:3B65635:4E5C3D2:6AFA24C3 |
| html-safe-nonce | b38dccb3ec0d12a7f4ba5a62d68baa7ee600b3ce67793fd8d4fde973ac04f9ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTE4OjFBMEU6M0I2NTYzNTo0RTVDM0QyOjZBRkEyNEMzIiwidmlzaXRvcl9pZCI6IjQ3NTMyODk5MzY2MjUwODM1ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 27a6726430f2664c20900464730737506a295d959574e2943c660fdcc0b4c81d |
| hovercard-subject-tag | issue:91114742 |
| 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/3640/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae7a40d3edd09e268c48fa8a1fe935054e8ca1d690b8f1e2727bfeca39b4e9e4/microsoft/TypeScript/issues/3640 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae7a40d3edd09e268c48fa8a1fe935054e8ca1d690b8f1e2727bfeca39b4e9e4/microsoft/TypeScript/issues/3640 |
| og:image:alt | Reported by Martin Probst (@mprobst) in #3514 mimial repro: a.d.ts: declare class X {} b.ts: /// |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhegazy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| 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 | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width