UNPKG

@bufbuild/protoc-gen-es

Version:

Protocol Buffers code generator for ECMAScript

9 lines (8 loc) 502 B
import { type DescExtension, type DescField } from "@bufbuild/protobuf"; import type { GeneratedFile, Printable } from "@bufbuild/protoplugin"; export declare function fieldTypeScriptType(field: DescField | DescExtension, imports: GeneratedFile["runtime"]): { typing: Printable; optional: boolean; }; export declare function fieldJsonType(field: DescField | DescExtension): Printable; export declare function functionCall(fn: Printable, args: Printable[], typeParams?: Printable[]): Printable;