UNPKG

@grpc.ts/fastify-client

Version:
15 lines (13 loc) 572 B
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; }; } }