Title: [Errors] Message quality degradation for overload resolution errors · Issue #93 · microsoft/TypeScript · GitHub
Open Graph Title: [Errors] Message quality degradation for overload resolution errors · Issue #93 · microsoft/TypeScript
X Title: [Errors] Message quality degradation for overload resolution errors · Issue #93 · microsoft/TypeScript
Description: // @module: commonjs // @Filename: foo_0.ts class Foo
Open Graph Description: // @module: commonjs // @Filename: foo_0.ts class Foo
X Description: // @module: commonjs // @Filename: foo_0.ts class Foo<T extends {a: string; b:number;}>{ test: T; constructor(x: T){} } export = Foo; // @Filename: foo_1.ts import foo = require("./foo_0...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/93
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Errors] Message quality degradation for overload resolution errors","articleBody":"``` TypeScript\n// @module: commonjs\n\n// @Filename: foo_0.ts\n\nclass Foo\u003cT extends {a: string; b:number;}>{\n\ntest: T;\n\nconstructor(x: T){}\n\n}\n\nexport = Foo;\n\n// @Filename: foo_1.ts\n\nimport foo = require(\"./foo_0\");\n\nvar x = new foo(true); // Should error\n\nvar y = new foo({a: \"test\", b: 42}); // Should be OK\n\nvar z: number = y.test.b;\n```\n\nExpected: \n\n!!! Supplied parameters do not match any signature of call target:\n\n!!! Type 'Boolean' is missing property 'a' from type '{ a: string; b: number; }'.\n\nActual: \n\n!!! Supplied parameters do not match any signature of call target.\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2014-07-17T19:57:14Z","url":"https://github.com/microsoft/TypeScript/issues/93"}
| 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:2a9a2a98-ec5d-88b4-9f66-9cefa0439c17 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF22:21E3E7:9A2A8B:CD63F6:6B00E533 |
| html-safe-nonce | 59f83d0f034a6d9523b6fe67c8bc2ad0bcea1ae40bc72b81d87f2c057069f2c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjIyOjIxRTNFNzo5QTJBOEI6Q0Q2M0Y2OjZCMDBFNTMzIiwidmlzaXRvcl9pZCI6IjM0NDc3MzA3MDU5Nzc2MzIwNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a6aea24505b5a593dfbd9d088dc0f5f043a3e820a0e52e622a923b38bc5e016e |
| hovercard-subject-tag | issue:38119382 |
| 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/93/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12d3766760851eab5cf047d060ba5d3a4249f2afaf07dac393c94e7110f060f5/microsoft/TypeScript/issues/93 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12d3766760851eab5cf047d060ba5d3a4249f2afaf07dac393c94e7110f060f5/microsoft/TypeScript/issues/93 |
| og:image:alt | // @module: commonjs // @Filename: foo_0.ts class Foo |
| 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 | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width