Skip to content

Add support for typescript isolatedDeclarations #3879

@tompuric

Description

@tompuric

Description

Our monorepo utilises typescripts isolatedDeclarations in order to improve the efficiency of our projects type checking.

Currently the generated output from openapi-ts does not support isolatedDeclarations and produces errors such as

.../client/core/params.gen.ts(105,34): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
.../client/client.gen.ts(16,14): error TS9010: Variable must have an explicit type annotation with --isolatedDeclarations.
.../client/sdk.gen.ts(3441,43): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.

Plugins used:

  • @hey-api/sdk
  • @hey-api/typescript
  • @hey-api/client-fetch

I believe openapi-ts should support this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions