UNPKG

@whisklabs/grpc

Version:

gRPC generator and http library for typescript

13 lines (12 loc) 310 B
export declare enum ChunkType { MESSAGE = 1, TRAILERS = 2 } export type Chunk = { chunkType: ChunkType.MESSAGE; data: Uint8Array; } | { chunkType: ChunkType.TRAILERS; trailers: Record<string, string>; }; export declare function chunkParse(buffer: Uint8Array, flush?: boolean): Chunk[];