{"id":16941970,"url":"https://github.com/samouri/typescript-type-import-bug-repro","last_synced_at":"2025-10-25T14:11:49.786Z","repository":{"id":71232169,"uuid":"382367020","full_name":"samouri/typescript-type-import-bug-repro","owner":"samouri","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-02T14:58:55.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T06:45:14.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/samouri.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-02T14:12:15.000Z","updated_at":"2021-07-02T14:58:58.000Z","dependencies_parsed_at":"2023-02-22T16:00:29.338Z","dependency_job_id":null,"html_url":"https://github.com/samouri/typescript-type-import-bug-repro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samouri/typescript-type-import-bug-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Ftypescript-type-import-bug-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Ftypescript-type-import-bug-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Ftypescript-type-import-bug-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Ftypescript-type-import-bug-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samouri","download_url":"https://codeload.github.com/samouri/typescript-type-import-bug-repro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Ftypescript-type-import-bug-repro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266807085,"owners_count":23987425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-13T21:10:48.355Z","updated_at":"2025-10-25T14:11:44.749Z","avatar_url":"https://github.com/samouri.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typescript-type-import-bug-repro\n\nI recently found a bug with `import type`.\n\nNormally, TS will figure out if the imported object is incorrectly being used as a value. For example:\n\n```typescript\nimport type { A } from './a';\n\n// Error: 'A' cannot be used as a value because it was imported using 'import type'\nconst object = { A: A };\n```\n\nWhen shorthand form of this statement is used, the error incorrectly passes typechecking.\n\n```typescript\nimport type { A } from './a';\n\nconst object = { A };\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamouri%2Ftypescript-type-import-bug-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamouri%2Ftypescript-type-import-bug-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamouri%2Ftypescript-type-import-bug-repro/lists"}