grpc-tsd

TypeScript d.ts definition of gRPC. Self made for self using, no official support.

Usage no npm install needed!

<script type="module">
  import grpcTsd from 'https://cdn.skypack.dev/grpc-tsd';
</script>

README

grpc-tsd

Deprecated!!

Since gRPC has published it's official definition, see index.d.ts. Current project is deprecated.

Attention

Current gRPC(v1.3.7) has no official TypeScript definition. But shall have one soon, see: #11020. This repo would be Deprecated as soon as official d.ts online.

Code base

Codes mostly come from #11020, and a bit from mixer/etcd3. And partly self updated.

Aim

Maintain a grpc.d.ts file for gRPC TypeScript project.

How to use

Install

npm install grpc-tsd --save-dev

Code

Add following codes in tsconfig.json

"include": [
    "node_modules/grpc-tsd/src/grpc.d.ts"
],

Resources