Skip to content

Commit

Permalink
export protobufjs.Reader from @hashgraph/proto
Browse files Browse the repository at this point in the history
  • Loading branch information
mehcode committed Nov 12, 2020
1 parent 3f92f91 commit ec0556e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/proto/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -10,6 +14,7 @@ import SmartContractService = proto.SmartContractService;
import TokenService = proto.TokenService;

export {
Reader,
ConsensusService,
CryptoService,
FileService,
Expand Down
4 changes: 4 additions & 0 deletions packages/proto/src/index.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit ec0556e

Please sign in to comment.