diff --git a/packages/proto/src/index.d.ts b/packages/proto/src/index.d.ts index a2a21b78d..17f2c927a 100644 --- a/packages/proto/src/index.d.ts +++ b/packages/proto/src/index.d.ts @@ -1,5 +1,9 @@ +import * as $protobuf from "@hashgraph/protobufjs/minimal.js"; import { proto } from "./proto.js"; +// re-export protobuf reader for usage by @hashgraph/sdk +import Reader = $protobuf.Reader; + import ConsensusService = proto.ConsensusService; import CryptoService = proto.CryptoService; import FileService = proto.FileService; @@ -10,6 +14,7 @@ import SmartContractService = proto.SmartContractService; import TokenService = proto.TokenService; export { + Reader, ConsensusService, CryptoService, FileService, diff --git a/packages/proto/src/index.js b/packages/proto/src/index.js index f0ec4d639..1bf132a60 100644 --- a/packages/proto/src/index.js +++ b/packages/proto/src/index.js @@ -1,5 +1,9 @@ +import * as $protobuf from "@hashgraph/protobufjs/minimal.js"; import { proto } from "./proto.js"; +// re-export protobuf reader for usage by @hashgraph/sdk +export const Reader = $protobuf.Reader; + export const ConsensusService = proto.ConsensusService; export const CryptoService = proto.CryptoService; export const FileService = proto.FileService;