Title: Module not imported for meta-data references. · Issue #13449 · microsoft/TypeScript · GitHub
Open Graph Title: Module not imported for meta-data references. · Issue #13449 · microsoft/TypeScript
X Title: Module not imported for meta-data references. · Issue #13449 · microsoft/TypeScript
Description: From #12888 (comment) after upgrading to TypeScript 2.1.5. the issue regressed in different place. when 'strictNullCheck' option is false the following typescript emitt invalid javascript code. file: auxiliry.ts export class SomeClass { ...
Open Graph Description: From #12888 (comment) after upgrading to TypeScript 2.1.5. the issue regressed in different place. when 'strictNullCheck' option is false the following typescript emitt invalid javascript code. fil...
X Description: From #12888 (comment) after upgrading to TypeScript 2.1.5. the issue regressed in different place. when 'strictNullCheck' option is false the following typescript emitt invalid javascript c...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/13449
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Module not imported for meta-data references.","articleBody":"\r\n\r\nFrom https://github.com/Microsoft/TypeScript/issues/12888#issuecomment-272100943\r\n\r\nafter upgrading to TypeScript 2.1.5. \r\nthe issue regressed in different place.\r\n\r\nwhen 'strictNullCheck' option is false the following typescript emitt invalid javascript code.\r\n\r\n**file: auxiliry.ts**\r\n```\r\nexport class SomeClass {\r\n field: string;\r\n}\r\n```\r\n\r\n**file: main.ts**\r\n```\r\nimport { SomeClass } from './auxiliry';\r\n\r\nfunction annotation(): PropertyDecorator {\r\n return (target: any): void => { };\r\n}\r\n\r\nexport class ClassA {\r\n @annotation() array: SomeClass | null;\r\n}\r\n```\r\n\r\n**Emitted code:**\r\n```\r\n\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c \u003c 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c \u003c 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nfunction annotation() {\r\n return function (target) { };\r\n}\r\nvar ClassA = (function () {\r\n function ClassA() {\r\n }\r\n return ClassA;\r\n}());\r\n__decorate([\r\n annotation(),\r\n __metadata(\"design:type\", auxiliry_1.SomeClass) // \u003c-- auxiliry_1 is not emitted as require statement\r\n], ClassA.prototype, \"array\", void 0);\r\nexports.ClassA = ClassA;\r\n```","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2017-01-12T19:47:26Z","url":"https://github.com/microsoft/TypeScript/issues/13449"}
| 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:1eb4edaa-c433-2568-d469-8eea32f5c47b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A16:2270F4:469FB8:5FA349:6B00CBD5 |
| html-safe-nonce | eadb438f94413779485d1a80aa0c6adb5055d71086f0b7cfbcccd48526e4794f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTE2OjIyNzBGNDo0NjlGQjg6NUZBMzQ5OjZCMDBDQkQ1IiwidmlzaXRvcl9pZCI6IjIyMjg2NzgxOTgzNDQ4NjI2NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3fe70c27c02d8e2f325324c81b75d14cf8d3201ac72a6ef004edc23d4f6ba909 |
| hovercard-subject-tag | issue:200462121 |
| 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/13449/issue_layout |
| twitter:image | https://opengraph.githubassets.com/503e8f5fe4535b4d82b71d08be6f19a75f94d3a177bf135711a2902240315e83/microsoft/TypeScript/issues/13449 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/503e8f5fe4535b4d82b71d08be6f19a75f94d3a177bf135711a2902240315e83/microsoft/TypeScript/issues/13449 |
| og:image:alt | From #12888 (comment) after upgrading to TypeScript 2.1.5. the issue regressed in different place. when 'strictNullCheck' option is false the following typescript emitt invalid javascript code. fil... |
| 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 | 98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4 |
| 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 | ef013399cf0a3c324bea644a685d7c1e0f06b5b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width