{"id":23708161,"url":"https://github.com/ayecue/overload","last_synced_at":"2026-02-17T23:03:01.326Z","repository":{"id":260338307,"uuid":"860138308","full_name":"ayecue/overload","owner":"ayecue","description":"Method overloading via decorators","archived":false,"fork":false,"pushed_at":"2024-09-21T00:45:13.000Z","size":213,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T23:35:22.153Z","etag":null,"topics":["overloading"],"latest_commit_sha":null,"homepage":"","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/ayecue.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":"2024-09-19T22:25:50.000Z","updated_at":"2024-09-21T02:55:08.000Z","dependencies_parsed_at":"2024-10-30T19:49:30.407Z","dependency_job_id":"ec50db63-0478-4cbb-984d-f2d8055df51d","html_url":"https://github.com/ayecue/overload","commit_stats":null,"previous_names":["ayecue/overload"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ayecue/overload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayecue%2Foverload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayecue%2Foverload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayecue%2Foverload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayecue%2Foverload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayecue","download_url":"https://codeload.github.com/ayecue/overload/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayecue%2Foverload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29561783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["overloading"],"created_at":"2024-12-30T17:49:24.635Z","updated_at":"2026-02-17T23:03:01.302Z","avatar_url":"https://github.com/ayecue.png","language":"TypeScript","readme":"# overload\r\n\r\n[![overload](https://circleci.com/gh/ayecue/overload.svg?style=svg)](https://circleci.com/gh/ayecue/overload)\r\n\r\nPseudo overload via decorators.\r\n\r\n## Installation\r\n\r\n```sh\r\nnpm install --save pseudo-overload\r\n```\r\n\r\n## Example\r\n\r\n```ts\r\nimport { z } from 'zod';\r\nimport { OverloadConstructor, Overload } from 'pseudo-overload';\r\n\r\n@OverloadConstructor\u003cMyTestClass\u003e(\r\n  [[z.string(), z.number()], function (str: string, num: number) {\r\n    this.propertyA = `${str} - ${num}`;\r\n    this.propertyB = 'empty';\r\n  }],\r\n  [[], function () {\r\n    this.propertyA = 'empty';\r\n    this.propertyB = 'provided no params'\r\n  }]\r\n)\r\nexport class MyTestClass {\r\n  propertyA: string;\r\n  propertyB: string;\r\n\r\n  constructor();\r\n  constructor(str: number, num: string);\r\n  constructor(str: string, num: number);\r\n  constructor(...args: any[]) { }\r\n\r\n  foo(str: number): string;\r\n  foo(str: string): string;\r\n  @Overload\u003cMyTestClass, string\u003e(\r\n    [[z.string()], function (str: string) {\r\n      return `A String ${str}`;\r\n    }],\r\n  )\r\n  foo(...args: any[]): any { }\r\n\r\n  bar(str: string, num?: number): string;\r\n  @Overload\u003cMyTestClass, string\u003e(\r\n    [[z.string(), z.number()], function (str: string, num: number) {\r\n      return `A String ${str} And A Number ${num}`;\r\n    }],\r\n    [[z.string()], function (str: string | null) {\r\n      return `A String ${str}`;\r\n    }],\r\n  )\r\n  bar(...args: any[]): any { }\r\n}\r\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayecue%2Foverload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayecue%2Foverload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayecue%2Foverload/lists"}