20 lines
723 B
TypeScript
20 lines
723 B
TypeScript
import type { AnyDesc } from "../descriptors.js";
|
|
/**
|
|
* Return a fully-qualified name for a Protobuf descriptor.
|
|
* For a file descriptor, return the original file path.
|
|
*
|
|
* See https://protobuf.com/docs/language-spec#fully-qualified-names
|
|
*/
|
|
export declare function qualifiedName(desc: AnyDesc): string;
|
|
/**
|
|
* Converts snake_case to protoCamelCase according to the convention
|
|
* used by protoc to convert a field name to a JSON name.
|
|
*/
|
|
export declare function protoCamelCase(snakeCase: string): string;
|
|
/**
|
|
* Escapes names that are reserved for ECMAScript built-in object properties.
|
|
*
|
|
* Also see safeIdentifier() from @bufbuild/protoplugin.
|
|
*/
|
|
export declare function safeObjectProperty(name: string): string;
|