hey-api / openapi-ts

🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Support: @mrlubos
https://heyapi.dev
Other
1.39k stars 107 forks source link

Type error in `transformers.gen.ts` #1292

Open zumm opened 5 days ago

zumm commented 5 days ago

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