A library containing gRPC-generated TypeScript/JavaScript code and types for client-server communication. Current stable version 0.0.21 is pre-release and likely unstable. Use it with a gRPC server implementation (e.g., @grpc/grpc-js). Key differentiators: auto-generated from your .proto files, includes TypeScript types compiled from proto definitions. Alternative: use protobuf-ts or manually define types.
npm install grpc-generated-nameNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a gRPC client using generated code and calls a unary RPC named 'unaryCall' assuming it exists in your proto. Replace with actual method names.
Update imports to use 'from \"pkg/generated\"' if needed, or check package.json exports field.
Replace `createServer` with `createServiceServer`.
Use generated type guards or runtime enum mappers from '@grpc/grpc-js'.
Upgrade Node.js or pin to v0.0.19 if stuck on older Node.
Run `npm install grpc-generated-name@0.0.21` and verify package.json.
Use `import { ServiceClient } from 'grpc-generated-name'` instead of `import ServiceClient from ...`.Ensure proto methods match generated exports. Check server endpoint and import correct service definition.
Use generated code from this package directly; avoid manual proto loading.