Title: Type reference to require import resolves to static side · Issue #34802 · microsoft/TypeScript · GitHub
Open Graph Title: Type reference to require import resolves to static side · Issue #34802 · microsoft/TypeScript
X Title: Type reference to require import resolves to static side · Issue #34802 · microsoft/TypeScript
Description: // @filename: ex.d.ts export class C { start: number end: number } // @filename: test.js const C = require('./ex').C const C = require('./ex').C; /** @type {C} c */ var c = new C() Expected: No error, and completions for c.start and c.en...
Open Graph Description: // @filename: ex.d.ts export class C { start: number end: number } // @filename: test.js const C = require('./ex').C const C = require('./ex').C; /** @type {C} c */ var c = new C() Expected: No err...
X Description: // @filename: ex.d.ts export class C { start: number end: number } // @filename: test.js const C = require('./ex').C const C = require('./ex').C; /** @type {C} c */ var c = new C() ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/34802
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type reference to require import resolves to static side","articleBody":"```ts\r\n// @filename: ex.d.ts\r\nexport class C {\r\n start: number\r\n end: number\r\n}\r\n// @filename: test.js\r\nconst C = require('./ex').C\r\nconst C = require('./ex').C;\r\n/** @type {C} c */\r\nvar c = new C()\r\n```\r\n\r\nExpected: No error, and completions for `c.start` and `c.end`\r\n\r\nActual: Error, \"Property 'prototype' is missing in type 'C' but required in type 'typeof C'.\"","author":{"url":"https://github.com/sandersn","@type":"Person","name":"sandersn"},"datePublished":"2019-10-29T17:05:12Z","url":"https://github.com/microsoft/TypeScript/issues/34802"}
| 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:9043bc0b-41ff-118a-3c56-4abdbc8f5fff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCC2:2D2F2F:2F0A6A2:3C09EC2:6B01B4CD |
| html-safe-nonce | 711a1dc6e74a634d472636ba31c59b83fae6146cad37c440fe49a4ec684cb8e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0MyOjJEMkYyRjoyRjBBNkEyOjNDMDlFQzI6NkIwMUI0Q0QiLCJ2aXNpdG9yX2lkIjoiNjYzNTE2MzIyOTI2Mzg2OTEzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 73437f4a1b7a86211765d14ddb607c1bf3b45e2bfcf4b66ade92d6b858897c41 |
| hovercard-subject-tag | issue:514079348 |
| 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/34802/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e7f31c091926a8794219d02cbe83fba74936182658076101e9c8ff8084de8bd/microsoft/TypeScript/issues/34802 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e7f31c091926a8794219d02cbe83fba74936182658076101e9c8ff8084de8bd/microsoft/TypeScript/issues/34802 |
| og:image:alt | // @filename: ex.d.ts export class C { start: number end: number } // @filename: test.js const C = require('./ex').C const C = require('./ex').C; /** @type {C} c */ var c = new C() Expected: No err... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sandersn |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width