{"id":19793555,"url":"https://github.com/darky/ts-multimethod","last_synced_at":"2025-05-01T02:30:42.938Z","repository":{"id":57380950,"uuid":"415357590","full_name":"darky/ts-multimethod","owner":"darky","description":"TypeScript multimethods inspired by Clojure multimethods","archived":false,"fork":false,"pushed_at":"2021-10-10T13:24:41.000Z","size":31,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T21:52:21.279Z","etag":null,"topics":["clojure","method","multimethod","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/darky.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":"2021-10-09T16:09:44.000Z","updated_at":"2023-12-20T02:52:02.000Z","dependencies_parsed_at":"2022-08-27T13:23:35.146Z","dependency_job_id":null,"html_url":"https://github.com/darky/ts-multimethod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fts-multimethod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fts-multimethod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fts-multimethod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fts-multimethod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darky","download_url":"https://codeload.github.com/darky/ts-multimethod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251789612,"owners_count":21644085,"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":["clojure","method","multimethod","typescript"],"created_at":"2024-11-12T07:10:20.226Z","updated_at":"2025-05-01T02:30:42.623Z","avatar_url":"https://github.com/darky.png","language":"TypeScript","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# ts-multimethod\n\nTypeScript multimethods inspired by Clojure multimethods\n\n## Example\n\n```typescript\nconst fn = multimethod(\n  (n: number) =\u003e n, // \u003c- here predicate function\n  () =\u003e \"notZeroOrOne\", // \u003c- here default function\n  [0, () =\u003e \"zero\"], // \u003c- further tuples like [predicate, function]\n  [1, () =\u003e \"one\"]\n);\n\nfn(0) // zero\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarky%2Fts-multimethod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarky%2Fts-multimethod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarky%2Fts-multimethod/lists"}