UNPKG

@whisklabs/grpc

Version:

gRPC generator and http library for typescript

5 lines (4 loc) 304 B
import { Field, FieldGet } from '../types'; export declare const Encode: <T extends Field>(struct: T, obj: FieldGet<T>) => Uint8Array; export declare const Decode: <T extends Field>(struct: T, buffer: Uint8Array) => FieldGet<T>; export declare const Default: <T extends Field>(struct: T) => FieldGet<T>;