{"id":21546613,"url":"https://github.com/danielmlc/typescript-design","last_synced_at":"2025-03-18T01:00:17.809Z","repository":{"id":177543802,"uuid":"217715240","full_name":"danielmlc/typescript-design","owner":"danielmlc","description":"基于typescript的设计模式","archived":false,"fork":false,"pushed_at":"2025-03-02T13:29:32.000Z","size":21,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T14:28:39.496Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/danielmlc.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":"2019-10-26T13:47:44.000Z","updated_at":"2019-11-19T14:42:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"c79ec6cf-d205-43bd-976b-64e60c14b566","html_url":"https://github.com/danielmlc/typescript-design","commit_stats":null,"previous_names":["danielmlc/typescript-design"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmlc%2Ftypescript-design","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmlc%2Ftypescript-design/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmlc%2Ftypescript-design/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmlc%2Ftypescript-design/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielmlc","download_url":"https://codeload.github.com/danielmlc/typescript-design/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244135891,"owners_count":20403797,"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-24T06:12:49.576Z","updated_at":"2025-03-18T01:00:17.783Z","avatar_url":"https://github.com/danielmlc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### 设计模式\n\n- [x] [策略模式](src/strategy-pattern/index.md)\n- [x] [观察者模式](src/observer-pattern/index.md)\n- [x] [装饰者模式](src/decorator-pattern/index.md)\n- [ ] [工厂模式]()\n- [ ] [单件模式]()\n- [ ] [命令模式]()\n- [ ] [适配器与外观模式]()\n- [ ] [模板方法模式]()\n- [ ] [迭代器与组合模式]()\n- [ ] [状态模式]()\n- [ ] [代理模式]()\n- [ ] [复合模式]()\n\n\n\n#### typescrit知识小结\n\n`extends` 关键字 用在类继承中，继承类如果是实体类必须在构造函数中执行super()方法执行父类的构造函数；并且必须实现父类的虚方法。\n\n`implements` 关键字 用在继承接口或者类，继承时必须实现接口或类中定义的变量或方法。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmlc%2Ftypescript-design","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielmlc%2Ftypescript-design","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmlc%2Ftypescript-design/lists"}