An adapter that makes HTTP requests for ts-api-client-generator via Fetch API.
Please see ts-api-client-generator docs to learn how to use instantiated adapters.
Install this package and its peer dependency using NPM:
npm install ts-api-client-generator-fetch ts-api-client-generator
or using Yarn:
yarn add ts-api-client-generator-fetch ts-api-client-generator
import FetchAdapter from 'ts-api-client-generator-fetch'
const adapter = new FetchAdapter</* optional, type of context */>({
transformResponse: /* optional function, for details please see ts-api-client-generator docs */
})