A typed REST client for the definitions from openapi-typegen
yarn add @sebspark/openapi-client`
or
npm install @sebspark/openapi-client`
import { TypedClient } from '@sebspark/openapi-client'
import { MarketdataClient } from './schemas/marketdata'
const client = TypedClient<MarketdataClient>(`https://example.com/api`)
const {data} = await client.get('/markets')
Example can be found in @sebspark/openapi-e2e