Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error in transformers.gen.ts #1292

Closed
zumm opened this issue Nov 16, 2024 · 1 comment
Closed

Type error in transformers.gen.ts #1292

zumm opened this issue Nov 16, 2024 · 1 comment
Labels
bug 🔥 Something isn't working

Comments

@zumm
Copy link

zumm commented Nov 16, 2024

Description

I have generated code like this:

export const getMyHistoryResponseTransformer = async (data: any): Promise<GetMyHistoryResponse> => {
    data = data.map(item => {
        return videoSchemaResponseTransformer(item);
    });
    return data;
};

TS complains about item type:
error TS7006: Parameter 'item' implicitly has an 'any' type.

Reproducible example or configuration

No response

OpenAPI specification (optional)

No response

System information (optional)

typescript: 5.6.3
@hey-api/openapi-ts: 0.55.3

@zumm zumm added the bug 🔥 Something isn't working label Nov 16, 2024
@mrlubos
Copy link
Member

mrlubos commented Nov 24, 2024

This should be fixed in the next release with the experimental parser!

@mrlubos mrlubos closed this as completed Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🔥 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants