diff --git a/packages/proto-loader/src/index.ts b/packages/proto-loader/src/index.ts index c1c78d28..3b85e40d 100644 --- a/packages/proto-loader/src/index.ts +++ b/packages/proto-loader/src/index.ts @@ -115,18 +115,18 @@ export interface EnumTypeDefinition extends ProtobufTypeDefinition { format: 'Protocol Buffer 3 EnumDescriptorProto'; } -enum IdempotencyLevel { +export enum IdempotencyLevel { IDEMPOTENCY_UNKNOWN = 0, NO_SIDE_EFFECTS = 1, IDEMPOTENT = 2 } -interface NamePart { +export interface NamePart { namePart: string; isExtension: boolean; } -interface UninterpretedOption { +export interface UninterpretedOption { name?: (NamePart[]|null); identifierValue?: (string|null); positiveIntValue?: (number|Long|string|null); @@ -136,12 +136,12 @@ interface UninterpretedOption { aggregateValue?: (string|null); } -interface CustomHttpPattern { +export interface CustomHttpPattern { kind?: (string|null); path?: (string|null); } -interface HttpRule { +export interface HttpRule { selector?: (string|null); get?: (string|null); put?: (string|null); @@ -154,7 +154,7 @@ interface HttpRule { additionalBindings?: (HttpRule[]|null); } -interface MethodOptions { +export interface MethodOptions { deprecated?: (boolean|null); idempotency_level?: (IdempotencyLevel|keyof typeof IdempotencyLevel|null); uninterpreted_option?: (UninterpretedOption[]|null); diff --git a/packages/proto-loader/test/descriptor_type_test.ts b/packages/proto-loader/test/descriptor_type_test.ts index 9c519633..cde89938 100644 --- a/packages/proto-loader/test/descriptor_type_test.ts +++ b/packages/proto-loader/test/descriptor_type_test.ts @@ -20,7 +20,7 @@ import { rpcFileDescriptorSet } from '../test_protos/rpc.desc'; import { readFileSync } from 'fs'; import * as proto_loader from '../src/index'; -import { dirname } from "path"; +import { dirname } from 'path'; // Relative path from build output directory to test_protos directory const TEST_PROTO_DIR = `${__dirname}/../../test_protos/`;