OpenAPITools / OpenAPITools/openapi-generator

[BUG][typescript-angular] Syntax error with current TypeScript

Open
#8,422 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: TypeScript Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Description

image
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.