@grpc.ts/fastify-client
Version:
Fastify package for client
15 lines (13 loc) • 572 B
TypeScript
import type { FastifyPluginAsync } from 'fastify';
import type { IGrpcClientProps } from '@grpc.ts/core/lib/interface';
export { createClient, GrpcTimestamp, createMetadata, ChannelCredentials, createSecureContext, dateToGrpcTimestamp, grpcTimestampToDate, } from '@grpc.ts/core';
declare const _default: FastifyPluginAsync<IGrpcClientProps | IGrpcClientProps[]>;
export default _default;
import type { TGetServiceFunc } from './interface';
declare module 'fastify' {
export interface FastifyInstance {
grpcClient: {
getService: TGetServiceFunc;
};
}
}