{"id":13498511,"url":"https://github.com/tim-smart/effect-schema-class","last_synced_at":"2025-09-11T05:31:25.692Z","repository":{"id":159479318,"uuid":"634666449","full_name":"tim-smart/effect-schema-class","owner":"tim-smart","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-09T21:06:37.000Z","size":688,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-09T10:49:20.457Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tim-smart.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-04-30T21:18:34.000Z","updated_at":"2025-06-30T16:48:02.000Z","dependencies_parsed_at":"2024-01-21T12:58:12.645Z","dependency_job_id":null,"html_url":"https://github.com/tim-smart/effect-schema-class","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/tim-smart/effect-schema-class","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Feffect-schema-class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Feffect-schema-class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Feffect-schema-class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Feffect-schema-class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tim-smart","download_url":"https://codeload.github.com/tim-smart/effect-schema-class/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Feffect-schema-class/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274583096,"owners_count":25311742,"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-09-11T02:00:13.660Z","response_time":74,"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":[],"created_at":"2024-07-31T21:00:33.863Z","updated_at":"2025-09-11T05:31:25.373Z","avatar_url":"https://github.com/tim-smart.png","language":"TypeScript","funding_links":[],"categories":["Open source"],"sub_categories":["Libraries based on effect-ts"],"readme":"# effect-schema-class - Depreciated\n\n## @effect/schema now has classes\n\nThe power of @effect/schema and classes combined!\n\n## Example\n\n```ts\nimport * as S from \"@effect/schema/Schema\"\nimport { SchemaClass, SchemaClassExtends } from \"effect-schema-class\"\n\nclass Person extends SchemaClass({\n  id: S.number,\n  name: S.string,\n}) {\n  get upperName() {\n    return this.name.toUpperCase()\n  }\n}\n\nclass PersonWithAge extends SchemaClassExtends(Person, {\n  age: S.number,\n}) {\n  get isAdult() {\n    return this.age \u003e= 18\n  }\n}\n\nconst person = new Person({ id: 1, name: \"Tim\" }) // constructors validate the props\nconst parsePerson = S.parse(Person.schema())\n\nassert(person instanceof Data.Class) // extends Data for equality checks\n\n// clone a instance and validate the props\nconst john = person.copyWith({ name: \"John\" })\n\nassert(john.id === 1)\n```\n\n## License\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-smart%2Feffect-schema-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim-smart%2Feffect-schema-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-smart%2Feffect-schema-class/lists"}