UNPKG

@protobuf-ts/plugin

Version:

The protocol buffer compiler plugin "protobuf-ts" generates TypeScript, gRPC-web, Twirp, and more.

11 lines (10 loc) 462 B
import { DescEnum, DescMessage, DescService } from "@bufbuild/protobuf"; /** * Create a name for an enum, message or service. * - ignores package * - nested types get the names merged with '_' * - reserved words are escaped by adding '$' at the end * - does *not* prevent clashes, for example clash * of merged nested name with other message name */ export declare function createLocalTypeName(descriptor: DescMessage | DescEnum | DescService): string;