-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Open
Labels
Description
Description
When generating code with generator type "typescript-axios" and release 7.19.0, there is a function generated in common.ts, which was introduced with release 7.19.0 (by pull request https://github.com/OpenAPITools/openapi-generator/pull/22642/files/5256bcb55fb76284bbedae0bccd1fe3de234bbac):
export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) {
if (value instanceof Set) {
return Array.from(value);
} else {
return value;
}
}
The problem here is that the key parameter is not used, and typecheck now complains:
.../common.ts:99:61 - error TS6133: 'key' is declared but its value is never read.
99 export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) {
(Unfortunately it seems to be not possible to exclude generated files from typecheck)
openapi-generator version
7.19.0 (before: 7.18.0 where it worked)
Jasonizl and TimKolberger