protobufjs
Version:
Protocol Buffers for JavaScript & TypeScript.
20 lines (15 loc) • 646 B
TypeScript
import * as $protobuf from "..";
import { ITextFormatOptions } from "./textformat.generated";
export * from "./textformat.generated";
declare module ".." {
namespace textformat {
/** Maximum recursion depth for formatting length-delimited unknown fields. */
let unknownRecursionLimit: number;
}
interface Type {
/** Parses this type from protobuf text format. */
fromText(text: string): $protobuf.Message<{}>;
/** Formats a message of this type as protobuf text format. */
toText(message: ($protobuf.Message<{}>|{ [k: string]: any }), options?: ITextFormatOptions): string;
}
}