From ce8783b432a4754bb8dd0a69a81aa099c96609d9 Mon Sep 17 00:00:00 2001 From: Karel Hala Date: Thu, 7 Sep 2023 15:12:44 +0200 Subject: [PATCH] Add method type for localVarRequestOptions --- .../coreApi.mustache | 4 ++-- ...ule-federation-openapi-generator-1.0.0.jar | Bin 24737 -> 24744 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/typescript-axios-webpack-module-federation/coreApi.mustache b/src/main/resources/typescript-axios-webpack-module-federation/coreApi.mustache index 4a924dcfc..a437c5e23 100644 --- a/src/main/resources/typescript-axios-webpack-module-federation/coreApi.mustache +++ b/src/main/resources/typescript-axios-webpack-module-federation/coreApi.mustache @@ -1,5 +1,5 @@ // @ts-ignore -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig, Method } from 'axios'; // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../utils/common'; import type { RequestArgs } from '../utils/base'; @@ -75,7 +75,7 @@ export const {{nickname}}ParamCreator = async (...config: ([{{operationIdCamelCa .replace(`{${"{{baseName}}"}}`, encodeURIComponent(String({{paramName}}))){{/pathParams}}; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - const localVarRequestOptions = { method: '{{httpMethod}}', ...options}; + const localVarRequestOptions = { method: '{{httpMethod}}' as Method, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any;{{#vendorExtensions}}{{#hasFormParams}} const localVarFormParams = new {{^multipartFormData}}URLSearchParams(){{/multipartFormData}}{{#multipartFormData}}((configuration && configuration.formDataCtor) || FormData)(){{/multipartFormData}};{{/hasFormParams}}{{/vendorExtensions}} diff --git a/target/typescript-axios-webpack-module-federation-openapi-generator-1.0.0.jar b/target/typescript-axios-web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