{"id":21456934,"url":"https://github.com/gregonnet/conditional-types-playground","last_synced_at":"2025-10-25T08:12:59.902Z","repository":{"id":44142867,"uuid":"186745820","full_name":"GregOnNet/conditional-types-playground","owner":"GregOnNet","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-03T21:49:06.000Z","size":775,"stargazers_count":0,"open_issues_count":13,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T18:18:26.955Z","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/GregOnNet.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":"2019-05-15T03:56:38.000Z","updated_at":"2020-03-29T09:42:55.000Z","dependencies_parsed_at":"2023-02-01T10:46:42.316Z","dependency_job_id":null,"html_url":"https://github.com/GregOnNet/conditional-types-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GregOnNet/conditional-types-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GregOnNet%2Fconditional-types-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GregOnNet%2Fconditional-types-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GregOnNet%2Fconditional-types-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GregOnNet%2Fconditional-types-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GregOnNet","download_url":"https://codeload.github.com/GregOnNet/conditional-types-playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GregOnNet%2Fconditional-types-playground/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265863793,"owners_count":23840888,"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":[],"created_at":"2024-11-23T05:17:10.555Z","updated_at":"2025-10-25T08:12:59.807Z","avatar_url":"https://github.com/GregOnNet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Conditional types\n\n### Code demo steps\n\n- 0.  get rid of any\n- 1.  add type information string\n- 2.  demonstrate that simple union type signature with null is not working well\n- 3.  use overload signatures for string and null\n- 4.  demonstrate that parameter with union type is not supported\n- 5.  Show solution wih conditional types\n- 6.  refactor conditional type (StringOrNull\u003cT\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregonnet%2Fconditional-types-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregonnet%2Fconditional-types-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregonnet%2Fconditional-types-playground/lists"}