UNPKG

@ardatan/grpc-reflection-js

Version:

[![npm version](https://badge.fury.io/js/grpc-reflection-js.svg)](https://badge.fury.io/js/grpc-reflection-js) ![CI](https://github.com/redhoyasa/grpc-reflection-js/workflows/CI/badge.svg) [![codecov](https://codecov.io/gh/redhoyasa/grpc-reflection-js/bra

15 lines (14 loc) 604 B
import { ChannelCredentials } from '@grpc/grpc-js'; import * as services from './reflection_grpc_pb'; import { Root } from 'protobufjs'; export declare class Client { grpcClient: services.IServerReflectionClient; constructor(url: string, credentials: ChannelCredentials, options?: object); listServices(): Promise<string[] | void[]>; fileContainingSymbol(symbol: string): Promise<Root>; fileByFilename(filename: string): Promise<Root>; private resolveFileDescriptorSet; private resolveDescriptorRecursive; private getFileContainingSymbol; private getFileByFilename; }