{"id":16193626,"url":"https://github.com/pyramation/babel-issue-15215","last_synced_at":"2025-04-07T15:20:18.681Z","repository":{"id":66351020,"uuid":"549472300","full_name":"pyramation/babel-issue-15215","owner":"pyramation","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-23T10:31:56.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-13T02:03:50.567Z","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/pyramation.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-11T08:33:44.000Z","updated_at":"2022-11-23T10:34:35.000Z","dependencies_parsed_at":"2023-02-24T18:00:53.942Z","dependency_job_id":null,"html_url":"https://github.com/pyramation/babel-issue-15215","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/pyramation%2Fbabel-issue-15215","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fbabel-issue-15215/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fbabel-issue-15215/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fbabel-issue-15215/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyramation","download_url":"https://codeload.github.com/pyramation/babel-issue-15215/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977378,"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-10T08:15:51.306Z","updated_at":"2025-04-07T15:20:18.656Z","avatar_url":"https://github.com/pyramation.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel issue #15215 \n\n`typeParameters` for `ArrowFunctionExpression` w/o specifying always gets a trailingComma\n\nhttps://github.com/babel/babel/issues/15215\n\n\n## expected result\n```js\nconst useDeployment = \u003cTData = QueryDeploymentResponse\u003e({\n    request,\n    options\n}: UseDeploymentQuery\u003cTData\u003e) =\u003e {\n    return useQuery\u003cQueryDeploymentResponse, Error, TData\u003e([\"deploymentQuery\", request], () =\u003e {\n        if (!queryService) throw new Error(\"Query Service not initialized\");\n        return queryService.deployment(request);\n    }, options);\n};\n```\n\n## actual result\n\n\n```js\nconst useDeployment = \u003cTData = QueryDeploymentResponse,\u003e({\n    request,\n    options\n}: UseDeploymentQuery\u003cTData\u003e) =\u003e {\n    return useQuery\u003cQueryDeploymentResponse, Error, TData\u003e([\"deploymentQuery\", request], () =\u003e {\n        if (!queryService) throw new Error(\"Query Service not initialized\");\n        return queryService.deployment(request);\n    }, options);\n};\n```\n\n## diff result\n\nAdds a comma:\n\n```diff\n+const useDeployment = \u003cTData = QueryDeploymentResponse,\u003e({\n-const useDeployment = \u003cTData = QueryDeploymentResponse\u003e({\n```\n\n# how to run\n\n```\nyarn\nyarn test:watch\n```\n\n## files of interest\n\n- [output snapshot](https://github.com/pyramation/babel-issue-15215/blob/main/__tests__/__snapshots__/pure.test.ts.snap)\n- [test file with AST](https://github.com/pyramation/babel-issue-15215/blob/main/__tests__/pure.test.ts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fbabel-issue-15215","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyramation%2Fbabel-issue-15215","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fbabel-issue-15215/lists"}