Open DominiY opened 3 months ago
Yes it can, quite easily. Use swagger-typescript-api generate-templates
to get all the templates, and then use http-client.ejs
to customize http-client.ts
I use nodejs scripts to create ts files. you need to create your file structure like this and name the template file as http-client.ejs. The simplest way is to copy axios-http-client
or fetch-http-client
and rename it
Can http-client.ts be customized? Because wechat mini programs or other projects may not be axios or fetch.
I want to wrap a wx.request around it.