Provides TypeScript type definitions for the gRPC Node.js library, enabling type-safe gRPC service definitions and client/server implementations. Version 1.0.0 includes basic types for gRPC service methods, metadata, and error handling. It wraps the core grpc package and only adds types; no runtime functionality. The package is intended for use with grpc v1.x and is unlikely to receive frequent updates. Compare to @grpc/grpc-js which is the maintained successor with built-in types.
npm install grpc-typedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a typed gRPC service using grpc-typed type definitions for gRPC v1.x.
Migrate to @grpc/grpc-js which has built-in TypeScript types.
Manually cast or extend MethodDefinition for streaming.
Use additional type packages or integrate with grpc interceptors manually.
Switch to @grpc/proto-loader with gRPC-Tools for auto-generated types.
Install grpc-typed: npm install grpc-typed; or migrate to @grpc/grpc-js.
Use grpc.serializeObject or generate serializers via protobuf.
Ensure tsconfig includes node_modules types and use correct import path.
Use import type { MethodDefinition } from 'grpc-typed' and do not use it in runtime.