{"id":16901923,"url":"https://github.com/ttys026/typings-resolver","last_synced_at":"2025-04-11T14:23:19.425Z","repository":{"id":51674501,"uuid":"518765391","full_name":"ttys026/typings-resolver","owner":"ttys026","description":"Resolve All Typescript Definition Files of npm Packages","archived":false,"fork":false,"pushed_at":"2023-09-25T16:36:26.000Z","size":1294,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T16:50:03.306Z","etag":null,"topics":[],"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/ttys026.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":"2022-07-28T08:35:10.000Z","updated_at":"2022-09-08T14:40:52.000Z","dependencies_parsed_at":"2022-08-22T19:51:03.196Z","dependency_job_id":null,"html_url":"https://github.com/ttys026/typings-resolver","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/ttys026%2Ftypings-resolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttys026%2Ftypings-resolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttys026%2Ftypings-resolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttys026%2Ftypings-resolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttys026","download_url":"https://codeload.github.com/ttys026/typings-resolver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239676264,"owners_count":19678777,"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-13T18:02:38.506Z","updated_at":"2025-02-19T14:32:02.342Z","avatar_url":"https://github.com/ttys026.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typings-resolver\n\n---\n\nA lib to recursively resolve all typings files of a package. Works both in browser and in node environment.\n\n[demo](https://codesandbox.io/s/affectionate-snow-4x6q0v)\n\n## Install\n\n```bash\nnpm i typings-resolver\n```\n\n## Usage\n\n### await resolve done\n\n```ts\nimport { Resolver } from \"typings-resolver\";\n\nconst resolver = new Resolver();\nawait resolver.addPackage({ name: \"react\" });\nconst files = resolver.getFiles();\nconsole.log(\"files\", files);\n```\n\n### use EventEmitter\n\n```ts\nimport { Resolver } from \"typings-resolver\";\n\nconst resolver = new Resolver();\nresolver.emitter.on(\"add\", console.log);\nresolver.emitter.on(\"done\", () =\u003e {\n  const files = resolver.getFiles();\n  console.log(\"files\", files);\n});\nresolver.addPackage({ name: \"react\" });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttys026%2Ftypings-resolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttys026%2Ftypings-resolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttys026%2Ftypings-resolver/lists"}