UNPKG

protoc-gen-tsd

Version:

Protocol Buffers Compiler(protoc) plugin for TypeScript - Generate definition file(d.ts)

14 lines (13 loc) 970 B
/// <reference types="node" /> import { FileDescriptorProto } from 'google-protobuf/google/protobuf/descriptor_pb'; import { IExportEnumEntry, IExportMessageEntry } from './proto-ast-map'; export declare function withAllStdIn(callback: (buffer: Buffer) => void): void; export declare function uppercaseFirst(str: string): string; export declare function withinNamespaceFromExportEntry(name: string, exportEntry: IExportMessageEntry | IExportEnumEntry): string; export declare function getPathToRoot(fileName: string): string; export declare function filePathToPseudoNamespace(filePath: string): string; export declare function filePathFromProtoWithoutExt(protoFilePath: string): string; export declare function replaceProtoSuffix(protoFilePath: string): string; export declare function isProto2Syntax(fileDescriptor: FileDescriptorProto): boolean; export declare function snakeToCamel(str: string): string; export declare function isReservedWord(name: string): boolean;