@furystack/rest-client-fetch

7.0.4 • Public • Published

rest-client-fetch

REST Client package for @furystack/rest with native Fetch implementation. You can use this package to operate strongly typed REST APIs in the browser with native fetch implementation.

import { MyApi } from 'my-common-package'
import { createClient } from '@furystack/rest-client-fetch'

export const callMyApi = createClient<MyApi>({
  endpointUrl: 'http://my-service-endpoint',
  requestInit: {
    credentials: 'include',
  },
})

Package Sidebar

Install

npm i @furystack/rest-client-fetch

Weekly Downloads

248

Version

7.0.4

License

GPL-2.0

Unpacked Size

53.5 kB

Total Files

24

Last publish

Collaborators

  • gallayl