{"id":34908347,"url":"https://github.com/khusamov/temp-typescript-rtti-on-rollup-errors","last_synced_at":"2026-05-25T04:03:26.503Z","repository":{"id":42667329,"uuid":"475145251","full_name":"khusamov/temp-typescript-rtti-on-rollup-errors","owner":"khusamov","description":"On rollup.js: this has been rewritten to undefined #46","archived":false,"fork":false,"pushed_at":"2022-03-29T06:00:09.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-01T23:35:38.878Z","etag":null,"topics":["temp"],"latest_commit_sha":null,"homepage":"https://github.com/typescript-rtti/typescript-rtti/issues/46","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khusamov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-28T19:14:39.000Z","updated_at":"2022-03-28T19:32:56.000Z","dependencies_parsed_at":"2022-09-08T16:52:15.077Z","dependency_job_id":null,"html_url":"https://github.com/khusamov/temp-typescript-rtti-on-rollup-errors","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/khusamov/temp-typescript-rtti-on-rollup-errors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khusamov%2Ftemp-typescript-rtti-on-rollup-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khusamov%2Ftemp-typescript-rtti-on-rollup-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khusamov%2Ftemp-typescript-rtti-on-rollup-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khusamov%2Ftemp-typescript-rtti-on-rollup-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khusamov","download_url":"https://codeload.github.com/khusamov/temp-typescript-rtti-on-rollup-errors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khusamov%2Ftemp-typescript-rtti-on-rollup-errors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33459701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T02:24:28.008Z","status":"ssl_error","status_checked_at":"2026-05-25T02:23:23.339Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["temp"],"created_at":"2025-12-26T10:36:03.511Z","updated_at":"2026-05-25T04:03:26.498Z","avatar_url":"https://github.com/khusamov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# temp-typescript-rtti-on-rollup-errors\n\nОшибка исправлена!\nhttps://github.com/typescript-rtti/typescript-rtti/issues/46\n\nStart\n-----\n\n```\nyarn\nyarn start\n```\n\nIf you try to view the interface properties from a file, we get an empty array!\n\n```typescript\nimport \"reflect-metadata\"\nimport {reflect} from 'typescript-rtti'\nimport IMovable from './IMovable';\n\n// An array with two properties is expected to be output.\n// But instead an empty array is output!\nconsole.log(\n\treflect\u003cIMovable\u003e().as('interface').reflectedInterface.properties\n)\n```\n\nFile `IMovable.ts`:\n\n```typescript\nexport default interface IMovable {\n\tposition: string\n\treadonly movementVelocity: string\n}\n```\n\nRollup warning\n--------------\n\nThere are also suspicious warnings from Rollup:\n\n```\n(!) `this` has been rewritten to `undefined`\nhttps://rollupjs.org/guide/en/#error-this-is-undefined\nnode_modules/typescript-rtti/dist.esm/lib/reflect.js\n1: var __decorate = (this \u0026\u0026 this.__decorate) || function (decorators, target, key, desc) {\n                     ^\n2:     var c = arguments.length, r = c \u003c 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n3:     if (typeof Reflect === \"object\" \u0026\u0026 typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n...and 3 other occurrences\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhusamov%2Ftemp-typescript-rtti-on-rollup-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhusamov%2Ftemp-typescript-rtti-on-rollup-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhusamov%2Ftemp-typescript-rtti-on-rollup-errors/lists"}