@galinilin/grpc_tools_node_protoc_ts
Version:
Generate d.ts definitions for generated js files from grpc_tools_node_protoc
42 lines (36 loc) • 1.48 kB
TypeScript
/* tslint:disable */
/* eslint-disable */
// These imports are required for definitions to be properly loaded
import * as _1 from "google-protobuf/google/protobuf/compiler/plugin_pb";
import * as _2 from "google-protobuf/google/protobuf/descriptor_pb";
// This is a temporary fix due to @types/google-protobuf being out of date
//
// logging date: 2021-04-10
// gap:
// - google-protobuf 2021-04-08 3.15.8
// - @types/google-protobuf 2020-10-28 3.7.4
//
// google-protobuf change log: https://github.com/protocolbuffers/protobuf/blob/master/CHANGES.txt
// releases: https://github.com/protocolbuffers/protobuf/releases
declare module "google-protobuf/google/protobuf/compiler/plugin_pb" {
export interface CodeGeneratorResponse {
getSupportedFeatures(): number;
setSupportedFeatures(value: number): CodeGeneratorResponse;
hasSupportedFeatures(): boolean;
clearRequiredFeatures(): CodeGeneratorResponse;
}
export namespace CodeGeneratorResponse {
export enum Feature {
FEATURE_NONE,
FEATURE_PROTO3_OPTIONAL,
}
}
}
declare module "google-protobuf/google/protobuf/descriptor_pb" {
export interface FieldDescriptorProto {
getProto3Optional(): boolean;
setProto3Optional(value: boolean): FieldDescriptorProto;
clearProto3Optional(): FieldDescriptorProto;
hasProto3Optional(): boolean;
}
}