npm.io
2.1.0 • Published 3 years ago

@furystack/rest-client-got

Licence
GPL-2.0
Version
2.1.0
Deps
6
Size
43 kB
Vulns
0
Weekly
0
Stars
5
DeprecatedThis package is deprecated

rest-client-got

REST Client package for @furystack/rest with got implementation You can use this package to operate strongly typed REST APIs in the browser and in NodeJS with the got library.


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

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