mirror of https://github.com/grpc/grpc-node.git
Update docs with recommended import method
This commit is contained in:
parent
8d69e9fa7a
commit
055282a140
|
|
@ -114,8 +114,8 @@ Consume the types:
|
||||||
```ts
|
```ts
|
||||||
import * as grpc from '@grpc/grpc-js';
|
import * as grpc from '@grpc/grpc-js';
|
||||||
import * as protoLoader from '@grpc/proto-loader';
|
import * as protoLoader from '@grpc/proto-loader';
|
||||||
import { ProtoGrpcType } from './proto/example';
|
import type { ProtoGrpcType } from './proto/example.ts';
|
||||||
import { ExampleHandlers } from './proto/example_package/Example';
|
import type { ExampleHandlers } from './proto/example_package/Example.ts';
|
||||||
|
|
||||||
const exampleServer: ExampleHandlers = {
|
const exampleServer: ExampleHandlers = {
|
||||||
// server handlers implementation...
|
// server handlers implementation...
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue