Title: TypeScript 1.5 - Metadata Annotations / Interfaces · Issue #2305 · microsoft/TypeScript · GitHub
Open Graph Title: TypeScript 1.5 - Metadata Annotations / Interfaces · Issue #2305 · microsoft/TypeScript
X Title: TypeScript 1.5 - Metadata Annotations / Interfaces · Issue #2305 · microsoft/TypeScript
Description: Hi there... I am struggling trying to find documentation on the TypeScript metadata annotation features that are apparently coming in 1.5... my question is how will interfaces work with metadata annotations knowing that TS interfaces hav...
Open Graph Description: Hi there... I am struggling trying to find documentation on the TypeScript metadata annotation features that are apparently coming in 1.5... my question is how will interfaces work with metadata an...
X Description: Hi there... I am struggling trying to find documentation on the TypeScript metadata annotation features that are apparently coming in 1.5... my question is how will interfaces work with metadata an...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/2305
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeScript 1.5 - Metadata Annotations / Interfaces","articleBody":"Hi there... I am struggling trying to find documentation on the TypeScript metadata annotation features that are apparently coming in 1.5... my question is how will interfaces work with metadata annotations knowing that TS interfaces have no runtime form???? take the following TS code:\n\nclass Server{\n}\n\nclass Client{\n constructor(svr: Server){\n }\n}\n\nI have not been able to find much detail on how TS will handle this, but based on the old AtScript documentation, I believe the transpiled JS code will look something like this:\n\nfunction Server(){\n}\n\nfunction Client(svr){\n}\n\nClient.parameters = [{is: Server}];\n\nThat's all fine and good but what will the JS look like if the TS is like that below whereby we introduce an interface??????\n\nclass IServer{\n}\n\nclass Server implements IServer{\n}\n\nclass Client{\n constructor(svr: IServer){\n }\n}\n","author":{"url":"https://github.com/giancarloa","@type":"Person","name":"giancarloa"},"datePublished":"2015-03-11T21:59:22Z","url":"https://github.com/microsoft/TypeScript/issues/2305"}
| 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:bde0cc54-536c-8d10-78d4-eb52756d4abb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D974:311640:89F41D:B0BCCF:6B00EB7F |
| html-safe-nonce | bac324b669a01a9ae9e45569f83922cd382ffcd0d8cbf19cbf33784494feb2b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTc0OjMxMTY0MDo4OUY0MUQ6QjBCQ0NGOjZCMDBFQjdGIiwidmlzaXRvcl9pZCI6IjUyNjMyNzM5NjE0ODc2NzYxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6174a2fcefb677c90030fc16e841e5be4285c42993de386794fdcc2f6abe8ff6 |
| hovercard-subject-tag | issue:60737054 |
| 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/2305/issue_layout |
| twitter:image | https://opengraph.githubassets.com/679282d43f390a01f3bff660502c356dc1e7013695786513a03d3576b5052139/microsoft/TypeScript/issues/2305 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/679282d43f390a01f3bff660502c356dc1e7013695786513a03d3576b5052139/microsoft/TypeScript/issues/2305 |
| og:image:alt | Hi there... I am struggling trying to find documentation on the TypeScript metadata annotation features that are apparently coming in 1.5... my question is how will interfaces work with metadata an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | giancarloa |
| 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