OpenAPITools / OpenAPITools/openapi-generator
[BUG][typescript-angular] Syntax error with current TypeScript
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description

as described in README.md: https://github.com/OpenAPITools/openapi-generator/blob/34d2e25899a6380521a443a3f702438a1aceb11b/modules/openapi-generator/src/main/resources/typescript-angular/README.mustache#L78
Works fine without =>
But I don't know too much about TypeScript to submit a PR.
openapi-generator version
$ docker run --rm openapitools/openapi-generator-cli version
5.0.1-SNAPSHOT
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the typescript-angular README.mustache template at the linked line and inspect the documented example that produces the syntax error with current TypeScript. Compare the example with the version that works without the reported arrow token; done means the generated TypeScript example is syntactically valid and the README matches it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100