ts-protoc-gen
Version:
Protoc Plugin for TypeScript Declarations and Service Definitions
8 lines (7 loc) • 461 B
TypeScript
import { ExportMap } from "../ExportMap";
import { FieldDescriptorProto } from "google-protobuf/google/protobuf/descriptor_pb";
export declare const MESSAGE_TYPE = 11;
export declare const BYTES_TYPE = 12;
export declare const ENUM_TYPE = 14;
export declare function getTypeName(fieldTypeNum: number): string;
export declare function getFieldType(type: FieldDescriptorProto.Type, typeName: string | null, currentFileName: string, exportMap: ExportMap): string;