{"id":22367347,"url":"https://github.com/shian15810/type-expand","last_synced_at":"2025-07-07T02:39:58.384Z","repository":{"id":57383195,"uuid":"313399027","full_name":"shian15810/type-expand","owner":"shian15810","description":"Utilities to expand TypeScript types shown by IntelliSense in Visual Studio Code.","archived":false,"fork":false,"pushed_at":"2020-12-14T06:29:47.000Z","size":62,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-19T17:44:07.797Z","etag":null,"topics":["expand","expanddeep","hover","intellisense","type","typescript","utility","vscode"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/type-expand","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shian15810.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-16T18:58:13.000Z","updated_at":"2025-01-29T09:00:51.000Z","dependencies_parsed_at":"2022-09-13T23:50:15.732Z","dependency_job_id":null,"html_url":"https://github.com/shian15810/type-expand","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/shian15810/type-expand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shian15810%2Ftype-expand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shian15810%2Ftype-expand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shian15810%2Ftype-expand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shian15810%2Ftype-expand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shian15810","download_url":"https://codeload.github.com/shian15810/type-expand/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shian15810%2Ftype-expand/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264003265,"owners_count":23542594,"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","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":["expand","expanddeep","hover","intellisense","type","typescript","utility","vscode"],"created_at":"2024-12-04T18:17:11.742Z","updated_at":"2025-07-07T02:39:58.368Z","avatar_url":"https://github.com/shian15810.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# type-expand\n\nUtilities to expand TypeScript types shown by IntelliSense in Visual Studio Code.\n\nInspired by https://stackoverflow.com/a/57683652.\n\n## Installation\n\n```shell\nnpm install --save-dev type-expand\n```\n\n## Usage\n\nCommented lines are the results shown in hover info when your cursor hovers over the types.\n\n```typescript\nimport type { Expand, ExpandDeep } from \"type-expand\";\n\ntype FooError = { foo: Error };\ntype BarError = { bar: Error };\n\ntype FooBarError = FooError \u0026 BarError;\n// type FooBarError = FooError \u0026 BarError;\n\ntype ExpandedFooBarError = Expand\u003cFooBarError\u003e;\n// type ExpandedFooBarError = {\n//   foo: Error;\n//   bar: Error;\n// };\n\ntype DeepExpandedFooBarError = ExpandDeep\u003cFooBarError\u003e;\n// type DeepExpandedFooBarError = {\n//   foo: {\n//     name: string;\n//     message: string;\n//     stack?: string;\n//   };\n//   bar: {\n//     name: string;\n//     message: string;\n//     stack?: string;\n//   };\n// };\n```\n\nUnlike other utility types, `Expand` and `ExpandDeep` do not transform type in any way.\n\n## See Also\n\n- [`typesafeconfig`](https://github.com/shian15810/typesafeconfig)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshian15810%2Ftype-expand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshian15810%2Ftype-expand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshian15810%2Ftype-expand/lists"}