Skip to content

Commit 770ae67

Browse files
authored
Merge pull request #18 from kaloudis/api-typings
lnc-web: add typings for main APIs
2 parents 9f81b8e + 29e8319 commit 770ae67

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ interface WasmGlobal {
6060
) => void;
6161
}
6262

63-
interface LncConstructor {
63+
export interface LncConstructor {
6464
/** Specify a custom Lightning Node Connect proxy server. If not specified we'll default to `mailbox.terminal.lightning.today:443`. */
6565
serverHost?: string;
6666
/** Your LNC pairing phrase */
@@ -99,11 +99,11 @@ export default class LNC {
9999
_onRemoteKeyReceive?: (keyHex: string) => void;
100100
salt: string;
101101
testCipher: string;
102-
// TODO: add typings
103-
lnd: any;
104-
loop: any;
105-
pool: any;
106-
faraday: any;
102+
103+
lnd: LndApi;
104+
loop: LoopApi;
105+
pool: PoolApi;
106+
faraday: FaradayApi;
107107

108108
constructor(config: LncConstructor) {
109109
this._serverHost =

0 commit comments

Comments
 (0)