Skip to content

typescript reports errors with FormData since 13.0.10 #814

Closed
@jeremyriverain

Description

@jeremyriverain

I'm experiencing TypeScript errors that come from the generated http-client.ts.

Here are the errors:

Capture d’écran du 2024-07-01 12-26-26

My build passes with version 13.0.10 of swagger-typescript-api but not with version 13.0.11.

By comparing the 2 generated files, here are the differences I obtain:

Capture d’écran du 2024-07-01 12-23-06

The file on the left is the one generated by swagger-typescript-api version 13.0.11. It has TypeScript errors.

The file on the right does not have TypeScript error.

My project uses version 5.2 of typescript.

I think the bug is introduced by this commit: 0d80f8e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions