{"id":18062897,"url":"https://github.com/stagas/setter-decorator","last_synced_at":"2025-04-05T13:23:37.662Z","repository":{"id":57357051,"uuid":"434917333","full_name":"stagas/setter-decorator","owner":"stagas","description":"decorator that attaches setters to class properties","archived":false,"fork":false,"pushed_at":"2022-02-01T19:16:25.000Z","size":222,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T20:51:18.984Z","etag":null,"topics":["decorator","property","setter"],"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/stagas.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":"2021-12-04T14:03:49.000Z","updated_at":"2021-12-04T17:07:34.000Z","dependencies_parsed_at":"2022-09-26T16:32:25.962Z","dependency_job_id":null,"html_url":"https://github.com/stagas/setter-decorator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":"stagas/ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Fsetter-decorator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Fsetter-decorator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Fsetter-decorator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Fsetter-decorator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stagas","download_url":"https://codeload.github.com/stagas/setter-decorator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247340416,"owners_count":20923258,"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":["decorator","property","setter"],"created_at":"2024-10-31T05:08:49.174Z","updated_at":"2025-04-05T13:23:37.633Z","avatar_url":"https://github.com/stagas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003esetter-decorator\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\ndecorator that attaches setters to properties\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"#install\"\u003e        🔧 \u003cstrong\u003eInstall\u003c/strong\u003e\u003c/a\u003e\n · \u003ca href=\"#example\"\u003e        🧩 \u003cstrong\u003eExample\u003c/strong\u003e\u003c/a\u003e\n · \u003ca href=\"#api\"\u003e            📜 \u003cstrong\u003eAPI docs\u003c/strong\u003e\u003c/a\u003e\n · \u003ca href=\"https://github.com/stagas/setter-decorator/releases\"\u003e 🔥 \u003cstrong\u003eReleases\u003c/strong\u003e\u003c/a\u003e\n · \u003ca href=\"#contribute\"\u003e     💪🏼 \u003cstrong\u003eContribute\u003c/strong\u003e\u003c/a\u003e\n · \u003ca href=\"https://github.com/stagas/setter-decorator/issues\"\u003e   🖐️ \u003cstrong\u003eHelp\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n***\n\n## Install\n\n```sh\n$ npm i setter-decorator\n```\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n#### Table of Contents\n\n*   [settable](#settable)\n    *   [Parameters](#parameters)\n*   [setter](#setter)\n    *   [Parameters](#parameters-1)\n\n### settable\n\n[src/index.ts:35-82](https://github.com/stagas/setter-decorator/blob/572b4c74029e822f2e0a8c79ca87b1bc97c016dd/src/index.ts#L35-L82 \"Source code on GitHub\")\n\nDecorates a class as `@settable`. This is required for `@setter` to work.\n\n```ts\n```\n\n#### Parameters\n\n*   `ctor` **any** The class to decorate\n\nReturns **any** The decorated class\n\n### setter\n\n[src/index.ts:122-143](https://github.com/stagas/setter-decorator/blob/572b4c74029e822f2e0a8c79ca87b1bc97c016dd/src/index.ts#L122-L143 \"Source code on GitHub\")\n\nAttaches a `@setter` to a property.\n\n```ts\n```\n\n#### Parameters\n\n*   `fn` **Setter** The setter function\n\nReturns **PropertyDecorator** A property decorator\n\n## Contribute\n\n[Fork](https://github.com/stagas/setter-decorator/fork) or\n[edit](https://github.dev/stagas/setter-decorator) and submit a PR.\n\nAll contributions are welcome!\n\n## License\n\nMIT © 2021\n[stagas](https://github.com/stagas)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstagas%2Fsetter-decorator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstagas%2Fsetter-decorator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstagas%2Fsetter-decorator/lists"}