{"id":21181985,"url":"https://github.com/daief/usage-of-ts-transformer","last_synced_at":"2026-04-24T18:38:49.179Z","repository":{"id":49359772,"uuid":"236272864","full_name":"daief/usage-of-ts-transformer","owner":"daief","description":null,"archived":false,"fork":false,"pushed_at":"2020-01-26T08:02:18.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T19:36:03.392Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daief.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":"2020-01-26T05:50:02.000Z","updated_at":"2022-07-25T01:44:49.000Z","dependencies_parsed_at":"2022-09-24T01:02:34.372Z","dependency_job_id":null,"html_url":"https://github.com/daief/usage-of-ts-transformer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daief/usage-of-ts-transformer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daief%2Fusage-of-ts-transformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daief%2Fusage-of-ts-transformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daief%2Fusage-of-ts-transformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daief%2Fusage-of-ts-transformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daief","download_url":"https://codeload.github.com/daief/usage-of-ts-transformer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daief%2Fusage-of-ts-transformer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28102732,"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-12-28T02:00:05.685Z","response_time":62,"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-11-20T17:53:37.747Z","updated_at":"2025-12-28T19:05:38.181Z","avatar_url":"https://github.com/daief.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 演示仓库\n\n关于 TypeScript 自定义 transformer 的使用。\n\n- `src`：用于编译的示例源文件\n- `index.ts`：主要文件\n\n主要是了解一下在 `before`、`after`、`afterDeclarations` 中使用 transformer 的区别。\n\n`index.ts` 定义了一个简单的 transformer，分别在 `before`、`after`、`afterDeclarations` 中使用，编译后查看输出的文件中不同的部分。\n\n启动编译：\n\n```bash\n$ yarn compile\n```\n\n\u003e 我的笔记：\u003chttps://daief.tech/2020-01-26/usage-of-ts-transformer.html\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaief%2Fusage-of-ts-transformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaief%2Fusage-of-ts-transformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaief%2Fusage-of-ts-transformer/lists"}