@furystack/rest-client-fetch

8.0.11 • 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

25

Version

8.0.11

License

GPL-2.0

Unpacked Size

56.1 kB

Total Files

24

Last publish

Collaborators

  • gallayl