Title: Support JSDoc `@property` · Issue #15715 · microsoft/TypeScript · GitHub
Open Graph Title: Support JSDoc `@property` · Issue #15715 · microsoft/TypeScript
X Title: Support JSDoc `@property` · Issue #15715 · microsoft/TypeScript
Description: From Livio Brunner (@BrunnerLivio) on May 8, 2017 9:1 VSCode Version: 1.12.1 OS Version: Ubuntu 16.04.1 LTS (Xenial Xerus) Example code: MyController.js // @ts-check class MyController { getWorld() { return this.world; // <--- Marked as ...
Open Graph Description: From Livio Brunner (@BrunnerLivio) on May 8, 2017 9:1 VSCode Version: 1.12.1 OS Version: Ubuntu 16.04.1 LTS (Xenial Xerus) Example code: MyController.js // @ts-check class MyController { getWorld()...
X Description: From Livio Brunner (@BrunnerLivio) on May 8, 2017 9:1 VSCode Version: 1.12.1 OS Version: Ubuntu 16.04.1 LTS (Xenial Xerus) Example code: MyController.js // @ts-check class MyController { getWorld()...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/15715
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support JSDoc `@property`","articleBody":"_From @BrunnerLivio on May 8, 2017 9:1_\n\n- VSCode Version: 1.12.1\r\n- OS Version: Ubuntu 16.04.1 LTS (Xenial Xerus)\r\n\r\nExample code:\r\nMyController.js\r\n```JavaScript\r\n// @ts-check\r\nclass MyController {\r\n getWorld() {\r\n return this.world; // \u003c--- Marked as error\r\n }\r\n}\r\nangular\r\n .module('myApp')\r\n .component('myComponent', {\r\n bindings: {\r\n 'world': '\u003c'\r\n },\r\n controller: MyController,\r\n template: `\u003cdiv>Hello {{$ctrl.getWorld()}}\u003c/div>`\r\n });\r\n\r\n\r\n```\r\nThe `this.world` is marked as error, as supposed to be. But it is actually pretty annoying, because in angular you need to use quite often those component bindings. I know there's the option `// @ts-ignore`, but that really pollutes the code and makes it less readable. \r\n\r\nAn extensions for this would be really useful.\r\n\r\nI use this workaround at the moment\r\n```JavaScript\r\n// @ts-check\r\nclass MyController {\r\n constructor() {\r\n this.world = this.world;\r\n }\r\n getWorld() {\r\n return this.world;\r\n }\r\n}\r\n\r\n[...]\r\n```\r\n\r\nI don't like this at all, but better than writing `// @ts-ignore`.\r\n\r\nIs there any other option / workaround?\n\n_Copied from original issue: Microsoft/vscode#26192_","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2017-05-10T04:39:01Z","url":"https://github.com/microsoft/TypeScript/issues/15715"}
| 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:76f6227f-eaf2-a1df-447f-c87e55086d95 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AE2:63875:C88B7F:10AC7D5:6B00F6C8 |
| html-safe-nonce | fa717a9def88643cf0f0c5249aff85029850c92b82868afc69a85934e3b3d7eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUUyOjYzODc1OkM4OEI3RjoxMEFDN0Q1OjZCMDBGNkM4IiwidmlzaXRvcl9pZCI6IjczMzM5NzU4MjMwMjk5NTgzNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c220bef7a529349f3ed73a8a45b1dd9001ec96ffe42ee9b43c63f3191f638ae1 |
| hovercard-subject-tag | issue:227565400 |
| 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/15715/issue_layout |
| twitter:image | https://opengraph.githubassets.com/90700aabaf5211d984d2753e3c557928e53cdf79c435da5a80ca4f05d0906a43/microsoft/TypeScript/issues/15715 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/90700aabaf5211d984d2753e3c557928e53cdf79c435da5a80ca4f05d0906a43/microsoft/TypeScript/issues/15715 |
| og:image:alt | From Livio Brunner (@BrunnerLivio) on May 8, 2017 9:1 VSCode Version: 1.12.1 OS Version: Ubuntu 16.04.1 LTS (Xenial Xerus) Example code: MyController.js // @ts-check class MyController { getWorld()... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjbvz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width