google-proto-files
Version:
All of the Google API's protocol buffer files
12 lines (11 loc) • 576 B
TypeScript
import * as protobuf from 'protobufjs';
export interface GoogleProtoFilesRootOptions {
[index: string]: any;
}
export declare class GoogleProtoFilesRoot extends protobuf.Root {
constructor(options?: GoogleProtoFilesRootOptions);
static getCommonProtoFiles(): string[];
resolvePath(_: string, includePath: string, alreadyNormalized?: boolean): string;
}
export declare function loadSync(filename: string, options?: protobuf.IParseOptions): protobuf.Root;
export declare function load(filename: string, options?: protobuf.IParseOptions): Promise<protobuf.Root>;