{"id":19904403,"url":"https://github.com/alloc/types","last_synced_at":"2026-06-04T21:31:02.697Z","repository":{"id":107078855,"uuid":"225451529","full_name":"alloc/types","owner":"alloc","description":"Common types for TypeScript","archived":false,"fork":false,"pushed_at":"2022-11-11T20:09:29.000Z","size":27,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T21:02:31.228Z","etag":null,"topics":["typescript"],"latest_commit_sha":null,"homepage":"","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/alloc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-02T19:23:14.000Z","updated_at":"2022-08-11T16:28:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"7077e6a2-6ea2-462d-9e5d-535031659019","html_url":"https://github.com/alloc/types","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/alloc/types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Ftypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Ftypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Ftypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Ftypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alloc","download_url":"https://codeload.github.com/alloc/types/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Ftypes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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-11-25T02:00:05.816Z","response_time":54,"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":["typescript"],"created_at":"2024-11-12T20:28:16.867Z","updated_at":"2025-11-25T23:16:41.713Z","avatar_url":"https://github.com/alloc.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# @alloc/types\n\nCommon types for TypeScript\n\n```ts\nimport { Lookup } from '@alloc/types'\nimport { ElementType } from '@alloc/types/react'\n```\n\n### Basic\n\n- `Solve\u003cT\u003e` for solving generic types\n\n- `Remap\u003cT\u003e` to simplify `\u0026` out of an object type\n\n- `Pick\u003cT, K\u003e` the same as built-in `Pick` but wrapped with `Solve`\n\n- `Overwrite\u003cT, U\u003e` for merging two object types (where `U` takes precedence)\n\n- `MergeUnknown\u003cT, U\u003e` for merging two object types (where `T` takes precedence)\n\n- `MergeDefaults\u003cT, U\u003e` for making `T` properties optional if they exist in `U`\n\n### React\n\n- `ElementType\u003cP\u003e` as a workaround for [#34237](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34237)\n\n- `ComponentPropsWithRef\u003cT\u003e` which uses `ElementType`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Ftypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falloc%2Ftypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Ftypes/lists"}