Skip to content

Commit fee6f48

Browse files
committed
Simplified class return type
1 parent 58143f2 commit fee6f48

File tree

5 files changed

+126
-92
lines changed

5 files changed

+126
-92
lines changed

example/yarn.lock

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,11 @@ balanced-match@^1.0.0:
17601760
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
17611761
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
17621762

1763+
base-64@^0.1.0:
1764+
version "0.1.0"
1765+
resolved "https://registry.yarnpkg.com/base-64/-/base-64-0.1.0.tgz#780a99c84e7d600260361511c4877613bf24f6bb"
1766+
integrity sha1-eAqZyE59YAJgNhURxId2E78k9rs=
1767+
17631768
base64-js@^1.1.2, base64-js@^1.2.3, base64-js@^1.5.1:
17641769
version "1.5.1"
17651770
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
@@ -5480,6 +5485,19 @@ react-is@^16.12.0, react-is@^16.8.1, react-is@^16.8.4, react-is@^16.8.6:
54805485
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
54815486
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
54825487

5488+
react-native-fs@^2.18.0:
5489+
version "2.18.0"
5490+
resolved "https://registry.yarnpkg.com/react-native-fs/-/react-native-fs-2.18.0.tgz#987b99cc90518ef26663a8d60e62104694b41c21"
5491+
integrity sha512-9iQhkUNnN2JNED0in06JwZy88YEVyIGKWz4KLlQYxa5Y2U0U2AZh9FUHtA04oWj+xt2LlHh0LFPCzhmNsAsUDg==
5492+
dependencies:
5493+
base-64 "^0.1.0"
5494+
utf8 "^3.0.0"
5495+
5496+
react-native-zip-archive@^6.0.3:
5497+
version "6.0.3"
5498+
resolved "https://registry.yarnpkg.com/react-native-zip-archive/-/react-native-zip-archive-6.0.3.tgz#19dad30565b068b352c55048c8c535a6195f0b46"
5499+
integrity sha512-EBJJV+owqD8ibBwYvEuvtBWlstHQUaN7QOJbc7shWwtJEgxayRbyVv5gGtUGTnMO2wX+dav+3egHX3s7GacRyA==
5500+
54835501
54845502
version "0.63.4"
54855503
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.63.4.tgz#2210fdd404c94a5fa6b423c6de86f8e48810ec36"
@@ -6681,6 +6699,11 @@ use@^3.1.0:
66816699
resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"
66826700
integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==
66836701

6702+
utf8@^3.0.0:
6703+
version "3.0.0"
6704+
resolved "https://registry.yarnpkg.com/utf8/-/utf8-3.0.0.tgz#f052eed1364d696e769ef058b183df88c87f69d1"
6705+
integrity sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==
6706+
66846707
util-deprecate@~1.0.1:
66856708
version "1.0.2"
66866709
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"

src/grpc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ class GrpcAction {
7070
sendStreamCommand(
7171
method: EGrpcStreamMethods,
7272
buffer: Uint8Array,
73-
onUpdate: (res: Result<Uint8Array, Error>) => void,
74-
onDone: (res: Result<boolean, Error>) => void
73+
onUpdate: (res: Result<Uint8Array>) => void,
74+
onDone: (res: Result<boolean>) => void
7575
): void {
7676
try {
7777
// Throws an exception if LND is not ready to be queried via grpc

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import LndConf from './utils/lnd.conf';
33

44
export { LndConf };
55
export * from './utils/types';
6-
export * from './rpc';
6+
export * from './protos/rpc';
77
export default lnd;

0 commit comments

Comments
 (0)