diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/common.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/common.mustache index 58eb0b81cedb..483c69b58aa5 100755 --- a/modules/openapi-generator/src/main/resources/typescript-axios/common.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-axios/common.mustache @@ -110,7 +110,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/echo_api/typescript-axios/build/common.ts b/samples/client/echo_api/typescript-axios/build/common.ts index f0157b93aa7a..f2bb835a911d 100644 --- a/samples/client/echo_api/typescript-axios/build/common.ts +++ b/samples/client/echo_api/typescript-axios/build/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/common.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/common.ts index a0c1ed7a330f..5a3bf995eca4 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/common.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/common.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/common.ts index c0e11d266d64..c0584f877749 100644 --- a/samples/client/petstore/typescript-axios/builds/composed-schemas/common.ts +++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/default/common.ts b/samples/client/petstore/typescript-axios/builds/default/common.ts index 9905c5e73447..74e9d860c95c 100644 --- a/samples/client/petstore/typescript-axios/builds/default/common.ts +++ b/samples/client/petstore/typescript-axios/builds/default/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/common.ts b/samples/client/petstore/typescript-axios/builds/es6-target/common.ts index 9905c5e73447..74e9d860c95c 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/common.ts +++ b/samples/client/petstore/typescript-axios/builds/es6-target/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/common.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/common.ts index 72e0c8f71a6f..c917f1701384 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/common.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/common.ts b/samples/client/petstore/typescript-axios/builds/with-complex-headers/common.ts index 9905c5e73447..74e9d860c95c 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/common.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/common.ts index 72e0c8f71a6f..c917f1701384 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/common.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/common.ts index 9905c5e73447..74e9d860c95c 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/common.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/common.ts index 9905c5e73447..74e9d860c95c 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/common.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/common.ts index 516bd5d596b7..2cc0e11cffa4 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/common.ts @@ -97,7 +97,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/common.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/common.ts index 9905c5e73447..74e9d860c95c 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/common.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/common.ts index 9905c5e73447..74e9d860c95c 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/common.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/common.ts index 9905c5e73447..74e9d860c95c 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else { diff --git a/samples/client/petstore/typescript-axios/builds/with-string-enums/common.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/common.ts index 9905c5e73447..74e9d860c95c 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/common.ts @@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) { * This function will run for every key-value pair encountered by JSON.stringify while traversing an object. * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required. */ -export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) { +// @ts-ignore +export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) { if (value instanceof Set) { return Array.from(value); } else {