{"id":16149154,"url":"https://github.com/zardoy/generated-module","last_synced_at":"2025-10-04T19:21:49.507Z","repository":{"id":103299881,"uuid":"410068926","full_name":"zardoy/generated-module","owner":"zardoy","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-26T21:37:41.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T03:41:50.380Z","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/zardoy.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":"2021-09-24T18:45:29.000Z","updated_at":"2021-09-26T21:37:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"d85accc7-d2c3-43ea-a546-f9ffcab7a8e6","html_url":"https://github.com/zardoy/generated-module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Fgenerated-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Fgenerated-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Fgenerated-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Fgenerated-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zardoy","download_url":"https://codeload.github.com/zardoy/generated-module/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557793,"owners_count":20958046,"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-10-10T00:37:02.021Z","updated_at":"2025-10-04T19:21:44.432Z","avatar_url":"https://github.com/zardoy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generated Module\n\nImportant notes on default tsconfig:\n\n- always latest target\n- strict mode, but with implicit any allowed\n\n\n\u003c!-- TODO: link --\u003e\nGenerating should always happen via some *TypeScript builder* and not via strings manipulations as [Prisma](https://github.com/prisma/prisma/blob/188d6c8e28f0cfbaf112428aa5216c957e497ae4/packages/client/src/generation/TSClient/Model.ts#L443) do (use ts-morph or TS factory)\n\nWith this module you can use two types of builders:\n\n- [ts-morph](https://github.com/dsherret/ts-morph/blob/latest/packages/ts-morph) (recommended)\n- (WIP) [TypeScript factory](https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API) e.g. `ts.factory` methods (native)\n\nThe last one is most known and used, you can find a lot of examples with it on GitHub.\nAnd you can use https://ts-ast-viewer.com/:\n\n- write code that should be generated\n- select all\n- copy and adjust code from left-bottom window (Factory Code)\n\n- When using linking for testing or in workspace: Keep in mind [this limitation](https://github.com/zardoy/repro-typescript-linking)\n\n## Usage Example\n\nsee `./example-time` dir\n\n- TODO link action-inputs\n\n- But note, that in real world generating module should happen via postinstall hook\n\n## More Examples\n\nTIME example\n\n## TODO\n\n- keywords\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzardoy%2Fgenerated-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzardoy%2Fgenerated-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzardoy%2Fgenerated-module/lists"}