Update docs with recommended import method

This commit is contained in:
Anton 2024-03-25 09:03:50 +01:00
parent 8d69e9fa7a
commit 055282a140
1 changed files with 2 additions and 2 deletions

View File

@ -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...