UNPKG

@protobuf-ts/plugin

Version:

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

16 lines (15 loc) 618 B
import { DescriptorRegistry, FileDescriptorProto, GeneratedFile, TypescriptFile } from "@protobuf-ts/plugin-framework"; import { InternalOptions } from "./our-options"; /** * A protobuf-ts output file. */ export declare class OutFile extends TypescriptFile implements GeneratedFile { readonly fileDescriptor: FileDescriptorProto; private readonly registry; private readonly options; private header; constructor(name: string, fileDescriptor: FileDescriptorProto, registry: DescriptorRegistry, options: InternalOptions); getContent(): string; getHeader(): string; private makeHeader; }