Title: Salsa does not use JSDoc all the way in type inference · Issue #6659 · microsoft/TypeScript · GitHub
Open Graph Title: Salsa does not use JSDoc all the way in type inference · Issue #6659 · microsoft/TypeScript
X Title: Salsa does not use JSDoc all the way in type inference · Issue #6659 · microsoft/TypeScript
Description: From alexandrudima on January 27, 2016 12:40 Testing #2218 I would expect Person and Person2 to behave the same given the JSDoc "types" age to be a number. /** * @param {number} age */ function Person(age) { this.age = age; // <- it know...
Open Graph Description: From alexandrudima on January 27, 2016 12:40 Testing #2218 I would expect Person and Person2 to behave the same given the JSDoc "types" age to be a number. /** * @param {number} age */ function Per...
X Description: From alexandrudima on January 27, 2016 12:40 Testing #2218 I would expect Person and Person2 to behave the same given the JSDoc "types" age to be a number. /** * @param {number} age */ fu...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/6659
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Salsa does not use JSDoc all the way in type inference","articleBody":"_From @alexandrudima on January 27, 2016 12:40_\n\nTesting #2218 \n\nI would expect `Person` and `Person2` to behave the same given the JSDoc \"types\" `age` to be a `number`.\n\n``` javascript\n/**\n * @param {number} age\n */\nfunction Person(age) {\n this.age = age; // \u003c- it knows age is a number\n}\n\nfunction Person2() {\n this.age = 13;\n}\n\nvar p1 = new Person();\nvar p2 = new Person2();\n\nvar a = p1.age; // \u003c- it doesn't know this is a number\nvar b = p2.age; // \u003c- it knows this is a number\n\n```\n\n_Copied from original issue: Microsoft/vscode#2437_\n","author":{"url":"https://github.com/egamma","@type":"Person","name":"egamma"},"datePublished":"2016-01-27T18:24:16Z","url":"https://github.com/microsoft/TypeScript/issues/6659"}
| 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:c559ad83-f1a5-fb90-f315-812dedb8e52a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D32A:4BB79:20BED46:29C89EB:6B017A19 |
| html-safe-nonce | 47bccfd7ee7139318ab475182b85081cb122747315a392ce28496fd39ed09df0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzJBOjRCQjc5OjIwQkVENDY6MjlDODlFQjo2QjAxN0ExOSIsInZpc2l0b3JfaWQiOiI3MTI3MzIwODk4ODk3NTQxNjU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 876ce835b731b566a8aaf422682859472e11e9fba511849f321506d6d15263cb |
| hovercard-subject-tag | issue:129227730 |
| 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/6659/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6df97397f8600238bc89f668b6f5e724bace4172efd164b4771d7cae85ba8633/microsoft/TypeScript/issues/6659 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6df97397f8600238bc89f668b6f5e724bace4172efd164b4771d7cae85ba8633/microsoft/TypeScript/issues/6659 |
| og:image:alt | From alexandrudima on January 27, 2016 12:40 Testing #2218 I would expect Person and Person2 to behave the same given the JSDoc "types" age to be a number. /** * @param {number} age */ function Per... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | egamma |
| 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