@creditkarma/thrift-server-core
Version:
Thrift core library in TypeScript
5 lines (4 loc) • 423 B
TypeScript
/// <reference types="node" />
import { IStructCodec, ProtocolType, TransportType } from '../types';
export declare function readThriftObject<StrictType>(data: Buffer, ThriftCodec: IStructCodec<any, StrictType>, transportType?: TransportType, protocolType?: ProtocolType): Promise<[StrictType, Buffer]>;
export declare function stripStruct(data: Buffer, transportType?: TransportType, protocolType?: ProtocolType): Buffer;