zijianhuang / webapiclientgen

Strongly Typed Client API Generators generate strongly typed client APIs in C# .NET and in TypeScript for jQuery and Angular 2+ from ASP.NET Web API and .NET Core Web API
MIT License
167 stars 38 forks source link

fetechAPI better support for response #130

Closed zijianhuang closed 1 year ago

zijianhuang commented 1 year ago

vue and axios had provided better support for TypeScript.

let me see whether

        getActionResult(headersHandler?: () => {[header: string]: string}): Promise<AxiosResponse<string>> {
            return Axios.get(this.baseUri + 'api/SuperDemo/ActionResult', { headers: headersHandler ? headersHandler() : undefined, responseType: 'text' });
        }

could be implemented in fetchAPI

zijianhuang commented 1 year ago

no problem at all