UNPKG

@creditkarma/thrift-client

Version:

Thrift client library for NodeJS written in TypeScript.

8 lines (7 loc) 795 B
import { IClientConstructor, ThriftClient } from '@creditkarma/thrift-server-core'; import { ICreateHttpClientOptions, ICreateTcpClientOptions, RequestOptions } from '../types'; export * from './HttpConnection'; export * from './TcpConnection'; export declare function createClient<TClient extends ThriftClient<RequestOptions>>(ServiceClient: IClientConstructor<TClient, RequestOptions>, options: ICreateHttpClientOptions): TClient; export declare function createTcpClient<TClient extends ThriftClient<void>>(ServiceClient: IClientConstructor<TClient, void>, options: ICreateTcpClientOptions): TClient; export declare function createHttpClient<TClient extends ThriftClient<RequestOptions>>(ServiceClient: IClientConstructor<TClient, RequestOptions>, options: ICreateHttpClientOptions): TClient;