nice-grpc-error-details (v0.2.14) provides a TypeScript implementation of Google's gRPC rich error model (google.rpc.Status with details) for use with nice-grpc. It converts between gRPC service errors and typed ErrorInfo, RetryInfo, DebugInfo, QuotaFailure, BadRequest, PreconditionFailure, RequestInfo, ResourceInfo, Help, LocalizedMessage details. Updated infrequently as needed for nice-grpc compatibility. Key differentiator: integrates seamlessly with nice-grpc's error handling, supports both client and server side, and ships complete TypeScript definitions.
npm install nice-grpc-error-detailsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a gRPC server that throws an error with RetryInfo detail using nice-grpc-error-details.
Use `import { RetryInfo } from 'nice-grpc-error-details/lib/RetryInfo'` instead of root import.Replace `createStatus` with `fromStatus` and `createErrorDetails` with direct detail constructors.
Add `google-protobuf` to your project's dependencies: `npm install google-protobuf`.
Use `import { RetryInfo } from 'nice-grpc-error-details/lib/RetryInfo'` and import protobuf classes from `google-protobuf`.Use ESM imports or enable esm interop in CommonJS (e.g., dynamic import()).
Run `npm install google-protobuf`.
Import from subpath: `import { RetryInfo } from 'nice-grpc-error-details/lib/RetryInfo'` and ensure `google-protobuf` is installed.Use `import { fromStatus } from 'nice-grpc-error-details'`.