Skip to content

An adapter that makes HTTP requests for ts-api-client-generator via Fetch API

License

Notifications You must be signed in to change notification settings

inforion/ts-api-client-generator-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch Adapter for ts-api-client-generator

NPM version

Description

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.

Installation

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

Instantiate

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 */
})

About

An adapter that makes HTTP requests for ts-api-client-generator via Fetch API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published