Skip to content

[Request]Add prefix or suffix generated types #191

Closed
@the-ult

Description

@the-ult

Would it be possible to add an option to add a prefix or suffix to the generated types to prevent errors like:

import { Person } from './models/swagger-api.__generated__';
/// => Import declaration conflicts with local declaration of Person

E.g.:
npx swagger-typescript-api ... --suffix=model

Person => PersonModel

For example:
We are trying to use the generated types/interfaces with graphql-codegen, but the naming of the generated types conflict with the already existing (generated) graphql types.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions