UNPKG

@creditkarma/consul-client

Version:

A client for Hashicorp Consul written in TypeScript

17 lines (16 loc) 477 B
import { OptionsOfJSONResponseBody, Response } from 'got'; export interface IQueryMap { index?: number; dc?: string; service?: string; tag?: string; near?: string; 'node-meta'?: string; [key: string]: string | number | boolean | undefined; } export interface IHeaderMap { [key: string]: string | undefined; } export interface IConsulClient<ConsulRequest> { send(req: ConsulRequest, options?: OptionsOfJSONResponseBody): Promise<Response>; }