UNPKG

@sargonpiraev/hh-api-client

Version:

A TypeScript client for the HeadHunter API, generated from the official OpenAPI specification.

13 lines (12 loc) 318 B
import { client } from './generated/client.gen.js'; import * as sdk from './generated/sdk.gen.js'; export class HhApiClient { client; constructor(config) { this.client = client; this.client.setConfig({ headers: { 'User-Agent': config.userAgent }, }); } sdk = sdk; }