Skip to content

Commit 791b904

Browse files
authored
Merge pull request #12 from WebBTC/fix/lookup-invoice
fix: lookup invoice args and response type
2 parents 12133ce + 1713423 commit 791b904

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@webbtc/webln-types",
33
"description": "Type definitions for WebLN",
4-
"version": "2.1.0",
4+
"version": "3.0.0",
55
"types": "types/index.d.ts",
66
"repository": {
77
"type": "git",

types/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,13 @@ interface GetBalanceResponse {
7777
}
7878

7979
interface LookupInvoiceArgs {
80-
invoice?: string;
81-
payment_hash?: string;
80+
paymentRequest?: string;
81+
paymentHash?: string;
8282
}
8383

8484
interface LookupInvoiceResponse {
8585
paymentRequest: string;
86+
preimage?: string;
8687
paid: boolean;
8788
}
8889

0 commit comments

Comments
 (0)