Skip to content

typescript-fetch-client2 - generated code doesn't compile with noUnusedLocals #32

@taras

Description

@taras

Related: karlvr/openapi-generator-plus#34

Backstage projects use this config https://github.com/backstage/backstage/blob/master/packages/cli/config/tsconfig.json which includes noUnusedLocals: true.

When I try to compile the project with code generated by typescript-fetch-client2, I get the following errors,

  • error TS6133: 'COLLECTION_FORMATS' is declared but its value is never read.
  • error TS6133: 'configuration' is declared but its value is never read.
  • error TS6133: 'mimeType' is declared but its value is never read.
  • error TS6133: 'dateToString' is declared but its value is never read.

Is it possible to detect when these are not necessary and not generating them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions